summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-04-05 13:19:59 +0100
committerRémy Coutable <remy@rymai.me>2017-04-14 15:20:55 +0200
commitebd5e9b4549ebc80155a5a8f139efdb40b6f8b12 (patch)
tree84d7f3066f0dbf7022bc0ec58cb3ab235006715a /db
parentc3bb21ff800699bed829a30c75fa81fd0d4dab8d (diff)
downloadgitlab-ce-ebd5e9b4549ebc80155a5a8f139efdb40b6f8b12.tar.gz
Port 'Add EE usage ping' to CE
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/557
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160713222618_add_usage_ping_to_application_settings.rb7
-rw-r--r--db/schema.rb1
2 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20160713222618_add_usage_ping_to_application_settings.rb b/db/migrate/20160713222618_add_usage_ping_to_application_settings.rb
new file mode 100644
index 00000000000..c7c5cdf7a56
--- /dev/null
+++ b/db/migrate/20160713222618_add_usage_ping_to_application_settings.rb
@@ -0,0 +1,7 @@
+class AddUsagePingToApplicationSettings < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ def change
+ add_column :application_settings, :usage_ping_enabled, :boolean, default: true, null: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 5689f7331dc..7c5bb94dfb0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -116,6 +116,7 @@ ActiveRecord::Schema.define(version: 20170408033905) do
t.integer "unique_ips_limit_time_window"
t.boolean "unique_ips_limit_enabled", default: false, null: false
t.decimal "polling_interval_multiplier", default: 1.0, null: false
+ t.boolean "usage_ping_enabled", default: true, null: false
end
create_table "audit_events", force: :cascade do |t|