debian-mirror-gitlab/app/models/issue_assignee.rb
2020-03-13 15:44:24 +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')