diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-05-23 17:09:00 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-02 20:45:58 +0300 |
commit | ef9f23b797d7467a1d1bda15e29d1f33b070065f (patch) | |
tree | fff741860bfb8f574cd28f0c2ae4cc0a7a14c342 /db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb | |
parent | 254830c1f963f344585a45d96a03985e1ec2df0e (diff) |
Mark migration as requiring no downtime
+ Add spaces for four phases approach
+ fix InfluxDB rename
Diffstat (limited to 'db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb')
-rw-r--r-- | db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb b/db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb index e675fb7cd58..4e2c94be943 100644 --- a/db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb +++ b/db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb @@ -2,6 +2,8 @@ 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) |