mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-19 01:23:09 +00:00
13 lines
369 B
Ruby
13 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin
|
|
class AbuseReportAssignee < ApplicationRecord
|
|
self.table_name = 'abuse_report_assignees'
|
|
|
|
belongs_to :abuse_report, touch: true
|
|
belongs_to :assignee, class_name: "User", foreign_key: :user_id, inverse_of: :admin_abuse_report_assignees
|
|
|
|
validates :assignee, uniqueness: { scope: :abuse_report_id }
|
|
end
|
|
end
|