debian-mirror-gitlab/app/models/issue_assignee.rb
2020-03-09 13:42:32 +05:30

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')