Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issuable_escalation_status.rb « incident_management « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc881e62efdbb988252c0c119ad5d4bfd4aea2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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_status

    validates :issue, presence: true, uniqueness: true

    delegate :project, to: :issue
  end
end

IncidentManagement::IssuableEscalationStatus.prepend_mod_with('IncidentManagement::IssuableEscalationStatus')