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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-12-28 20:00:32 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2015-12-28 20:00:32 +0300
commit4d925f2147884812e349031a19f0d7ced9d5fdaf (patch)
treec15476c76ec6d6f0d2522b7362dec404aecb5dd9 /db/migrate
parent540eb0a9affef14329418b32be0dcd60f2b66e29 (diff)
Move InfluxDB settings to ApplicationSetting
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20151228150906_influxdb_settings.rb18
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