diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-05-19 15:10:15 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-02 19:45:57 +0200 |
commit | cf932df2348dc3ccd06ca557b68edc60f518c893 (patch) | |
tree | 8a0df00bc4bb080953a356cc2db314e86496b8ad /db/migrate | |
parent | c28546177e2b4d5f7f3cc0e5b3a7b404206565fb (diff) | |
download | gitlab-ce-cf932df2348dc3ccd06ca557b68edc60f518c893.tar.gz |
Add Prometheus metrics configuration
+ Cleanup Gemfile
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb | 13 |
1 files changed, 13 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 new file mode 100644 index 00000000000..e675fb7cd58 --- /dev/null +++ b/db/migrate/20170519102115_add_prometheus_settings_to_metrics_settings.rb @@ -0,0 +1,13 @@ +class AddPrometheusSettingsToMetricsSettings < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + disable_ddl_transaction! + + 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 |