2018-12-23 12:14:25 +05:30
|
|
|
class EnablePrometheusMetricsByDefault < ActiveRecord::Migration[4.2]
|
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
|