10 lines
268 B
Ruby
10 lines
268 B
Ruby
# frozen_string_literal: true
|
|
|
|
class IssueAssignee < ApplicationRecord
|
|
belongs_to :issue
|
|
belongs_to :assignee, class_name: "User", foreign_key: :user_id
|
|
|
|
validates :assignee, uniqueness: { scope: :issue_id }
|
|
end
|
|
|
|
IssueAssignee.prepend_if_ee('EE::IssueAssignee')
|