gitlab-org--gitlab-foss/db/migrate/20180503200320_enable_prometheus_metrics_by_default.rb

12 lines
294 B
Ruby
Raw Normal View History

class EnablePrometheusMetricsByDefault < ActiveRecord::Migration[4.2]
2018-05-07 04:46:23 -04:00
DOWNTIME = false
def up
change_column_default :application_settings, :prometheus_metrics_enabled, true
end
def down
change_column_default :application_settings, :prometheus_metrics_enabled, false
end
end