diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-18 02:41:40 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-27 15:54:27 +0200 |
commit | cac2d06e1374557b1803c48f3c1e93bd8ca1cad6 (patch) | |
tree | e5d8f5e51802ce817bfbe6e4344b00988d09f31c /db | |
parent | 602a1c34e33d75940c7acbf4a31a65e187dbbfde (diff) | |
download | gitlab-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.rb | 20 |
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 |