diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-18 09:11:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-18 09:11:01 +0300 |
commit | 514ace363222f19595375f59b123b5e27c2b9b8a (patch) | |
tree | 955d0b886197f5ae104fa29706084dc13061112f /app/models/incident_management | |
parent | 25d4a24f831382d37fabc1b6dd3fde26a6c34d4b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/incident_management')
-rw-r--r-- | app/models/incident_management/issuable_escalation_status.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/models/incident_management/issuable_escalation_status.rb b/app/models/incident_management/issuable_escalation_status.rb new file mode 100644 index 00000000000..88aef104d88 --- /dev/null +++ b/app/models/incident_management/issuable_escalation_status.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module IncidentManagement + class IssuableEscalationStatus < ApplicationRecord + include ::IncidentManagement::Escalatable + + self.table_name = 'incident_management_issuable_escalation_statuses' + + belongs_to :issue + + validates :issue, presence: true, uniqueness: true + end +end + +IncidentManagement::IssuableEscalationStatus.prepend_mod_with('IncidentManagement::IssuableEscalationStatus') |