20170519102115_add_prometheus_settings_to_metrics_settings.rb 430 Bytes
Newer Older
1
class AddPrometheusSettingsToMetricsSettings < ActiveRecord::Migration[4.2]
2
  include Gitlab::Database::MigrationHelpers
3

4 5
  disable_ddl_transaction!

6 7
  DOWNTIME = false

8 9 10 11 12 13 14 15 16
  def up
    add_column_with_default(:application_settings, :prometheus_metrics_enabled, :boolean,
                            default: false, allow_null: false)
  end

  def down
    remove_column(:application_settings, :prometheus_metrics_enabled)
  end
end