debian-mirror-gitlab/app/models/incident_management/issuable_escalation_status.rb
2022-08-13 15:12:31 +05:30

18 lines
566 B
Ruby

# frozen_string_literal: true
module IncidentManagement
class IssuableEscalationStatus < ApplicationRecord
include ::IncidentManagement::Escalatable
self.table_name = 'incident_management_issuable_escalation_statuses'
belongs_to :issue
has_one :project, through: :issue, inverse_of: :incident_management_issuable_escalation_statuses
validates :issue, presence: true, uniqueness: true
delegate :project, to: :issue
end
end
IncidentManagement::IssuableEscalationStatus.prepend_mod_with('IncidentManagement::IssuableEscalationStatus')