2021-08-18 02:11:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module IncidentManagement
|
|
|
|
class IssuableEscalationStatus < ApplicationRecord
|
|
|
|
include ::IncidentManagement::Escalatable
|
|
|
|
|
|
|
|
self.table_name = 'incident_management_issuable_escalation_statuses'
|
|
|
|
|
|
|
|
belongs_to :issue
|
2022-06-27 11:09:33 -04:00
|
|
|
has_one :project, through: :issue, inverse_of: :incident_management_issuable_escalation_statuses
|
2021-08-18 02:11:01 -04:00
|
|
|
|
|
|
|
validates :issue, presence: true, uniqueness: true
|
2021-12-17 07:16:21 -05:00
|
|
|
|
|
|
|
delegate :project, to: :issue
|
2021-08-18 02:11:01 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
IncidentManagement::IssuableEscalationStatus.prepend_mod_with('IncidentManagement::IssuableEscalationStatus')
|