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

20170519102115_add_prometheus_settings_to_metrics_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ec2ed712b969f7dbe6819ab76e57efa78c77a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AddPrometheusSettingsToMetricsSettings < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  DOWNTIME = false

  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