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

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

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

  def up
    # limit is added in 20200501000002_add_text_limit_to_sprints_extended_title
    add_column :prometheus_alerts, :runbook_url, :text # rubocop:disable Migration/AddLimitToTextColumns
  end

  def down
    remove_column :prometheus_alerts, :runbook_url
  end
end