From 866429f7892842c2a29a902eace64efac781019b Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Wed, 18 Jul 2018 02:41:40 +0100 Subject: Add instance_statistics_visibility_private application setting and top nav icon --- ...nce_statistics_visibility_to_application_setting.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb (limited to 'db') 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..9d5f4c15eb9 --- /dev/null +++ b/db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb @@ -0,0 +1,18 @@ +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 -- cgit v1.2.1