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

20200622040750_add_prometheus_alert_id_to_alert_management_alerts.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7669db0a288a3d5ef607f9e512310350348b0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class AddPrometheusAlertIdToAlertManagementAlerts < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    add_column :alert_management_alerts, :prometheus_alert_id, :integer

    add_column :alert_management_alerts, :environment_id, :integer
  end

  def down
    remove_column :alert_management_alerts, :prometheus_alert_id
    remove_column :alert_management_alerts, :environment_id
  end
end