summaryrefslogtreecommitdiff
path: root/db/migrate/20200729175935_add_dashboard_path_to_prometheus_metrics.rb
blob: 0562e8d1c14b832c3fa1e6d2aa78c55591088ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

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

  def up
    # Text limit is added in 20200730210506_add_text_limit_to_dashboard_path
    add_column :prometheus_metrics, :dashboard_path, :text # rubocop:disable Migration/AddLimitToTextColumns
  end

  def down
    remove_column :prometheus_metrics, :dashboard_path
  end
end