debian-mirror-gitlab/app/models/issue_assignee.rb

11 lines
268 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2019-07-07 11:18:12 +05:30
class IssueAssignee < ApplicationRecord
2017-08-17 22:00:37 +05:30
belongs_to :issue
belongs_to :assignee, class_name: "User", foreign_key: :user_id
2020-03-09 13:42:32 +05:30
validates :assignee, uniqueness: { scope: :issue_id }
2017-08-17 22:00:37 +05:30
end
2019-12-04 20:38:33 +05:30
IssueAssignee.prepend_if_ee('EE::IssueAssignee')