2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestAssignee < ApplicationRecord
|
|
|
|
belongs_to :merge_request
|
|
|
|
belongs_to :assignee, class_name: "User", foreign_key: :user_id
|
2020-03-13 15:44:24 +05:30
|
|
|
|
|
|
|
validates :assignee, uniqueness: { scope: :merge_request_id }
|
2019-07-07 11:18:12 +05:30
|
|
|
end
|