2021-10-27 15:23:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module IncidentManagement
|
|
|
|
class IssuableEscalationStatus < ApplicationRecord
|
|
|
|
include ::IncidentManagement::Escalatable
|
|
|
|
|
|
|
|
self.table_name = 'incident_management_issuable_escalation_statuses'
|
|
|
|
|
|
|
|
belongs_to :issue
|
2022-08-13 15:12:31 +05:30
|
|
|
has_one :project, through: :issue, inverse_of: :incident_management_issuable_escalation_statuses
|
2021-10-27 15:23:28 +05:30
|
|
|
|
|
|
|
validates :issue, presence: true, uniqueness: true
|
2022-01-26 12:08:38 +05:30
|
|
|
|
|
|
|
delegate :project, to: :issue
|
2021-10-27 15:23:28 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
IncidentManagement::IssuableEscalationStatus.prepend_mod_with('IncidentManagement::IssuableEscalationStatus')
|