debian-mirror-gitlab/db/migrate/20200729175935_add_dashboard_path_to_prometheus_metrics.rb
2020-10-24 23:57:45 +05:30

15 lines
402 B
Ruby

# 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