summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-18 02:41:40 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-27 15:54:27 +0200
commitcac2d06e1374557b1803c48f3c1e93bd8ca1cad6 (patch)
treee5d8f5e51802ce817bfbe6e4344b00988d09f31c /db
parent602a1c34e33d75940c7acbf4a31a65e187dbbfde (diff)
downloadgitlab-ce-cac2d06e1374557b1803c48f3c1e93bd8ca1cad6.tar.gz
Add instance_statistics_visibility_private application setting and top nav icon
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb b/db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb
new file mode 100644
index 00000000000..4b6c1f74346
--- /dev/null
+++ b/db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+class AddInstanceStatisticsVisibilityToApplicationSetting < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default(:application_settings, :instance_statistics_visibility_private,
+ :boolean,
+ default: false,
+ allow_null: false)
+ end
+
+ def down
+ remove_column(:application_settings, :instance_statistics_visibility_private)
+ end
+end