Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20180503200320_enable_prometheus_metrics_by_default.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c8f86ff0f48d8db2309b1e3b5deb31a36f238ad (plain)
1
2
3
4
5
6
7
8
9
10
11
class EnablePrometheusMetricsByDefault < ActiveRecord::Migration
  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