debian-mirror-gitlab/db/migrate/20180503200320_enable_prometheus_metrics_by_default.rb

12 lines
289 B
Ruby
Raw Normal View History

2019-01-03 12:48:30 +05:30
class EnablePrometheusMetricsByDefault < ActiveRecord::Migration
2018-10-15 14:42:47 +05:30
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