diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-18 02:41:40 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-26 19:00:10 +0200 |
commit | 866429f7892842c2a29a902eace64efac781019b (patch) | |
tree | 86341514b5c87d2ec8fdc4e15fe3986ac3afd452 /db | |
parent | f8f2d0f9e18a76324d85ae319a3bb8585ed107d5 (diff) | |
download | gitlab-ce-866429f7892842c2a29a902eace64efac781019b.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.rb | 18 |
1 files changed, 18 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..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 |