Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issue_assignee.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8128b8a538e9113c50bf4fe06f9c46e9211f9988 (plain)
1
2
3
4
5
6
7
8
9
10
# 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')