diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-28 23:00:57 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-28 23:00:57 +0300 |
commit | af00558d38806eda2fa70c8fdc34be98fced44a4 (patch) | |
tree | a4b8ed0a000e5c3607307f7d1598b63da39fa85f /db/migrate | |
parent | 47fbba447423f274211173ddb60ade4d14961cb3 (diff) | |
parent | 4d925f2147884812e349031a19f0d7ced9d5fdaf (diff) |
Merge branch 'relocate-influxdb-settings' into 'master'
Move InfluxDB settings to ApplicationSetting
This moves the settings from the YAML files to the database.
cc @sytses
See merge request !2228
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20151228150906_influxdb_settings.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20151228150906_influxdb_settings.rb b/db/migrate/20151228150906_influxdb_settings.rb new file mode 100644 index 00000000000..3012bd52cfd --- /dev/null +++ b/db/migrate/20151228150906_influxdb_settings.rb @@ -0,0 +1,18 @@ +class InfluxdbSettings < ActiveRecord::Migration + def change + add_column :application_settings, :metrics_enabled, :boolean, default: false + + add_column :application_settings, :metrics_host, :string, + default: 'localhost' + + add_column :application_settings, :metrics_database, :string, + default: 'gitlab' + + add_column :application_settings, :metrics_username, :string + add_column :application_settings, :metrics_password, :string + add_column :application_settings, :metrics_pool_size, :integer, default: 16 + add_column :application_settings, :metrics_timeout, :integer, default: 10 + add_column :application_settings, :metrics_method_call_threshold, + :integer, default: 10 + end +end |