2018-07-25 05:30:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-28 09:17:42 -04:00
|
|
|
class IssueAssignee < ApplicationRecord
|
2017-05-04 08:11:15 -04:00
|
|
|
belongs_to :issue
|
|
|
|
belongs_to :assignee, class_name: "User", foreign_key: :user_id
|
2020-01-28 19:08:58 -05:00
|
|
|
|
|
|
|
validates :assignee, uniqueness: { scope: :issue_id }
|
2017-05-04 08:11:15 -04:00
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
IssueAssignee.prepend_if_ee('EE::IssueAssignee')
|