2019-03-22 12:51:47 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestAssignee < ApplicationRecord
|
|
|
|
belongs_to :merge_request
|
|
|
|
belongs_to :assignee, class_name: "User", foreign_key: :user_id
|
2020-01-28 19:08:58 -05:00
|
|
|
|
|
|
|
validates :assignee, uniqueness: { scope: :merge_request_id }
|
2019-03-22 12:51:47 -04:00
|
|
|
end
|