diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-08-01 15:17:47 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-08-01 15:17:47 +0000 |
commit | ea6fc714bb0306ac8ca56b5dafe4b6777aafe5fc (patch) | |
tree | 5d9673f0e526acbdb3285147024064f89d45dc23 /db | |
parent | 47244ad5ea4e887ecb6dffa9f7b96846adbf4b6f (diff) | |
parent | 29dd1c14db6899c3858ca906e076c7b7fbbaa0e2 (diff) | |
download | gitlab-ce-ea6fc714bb0306ac8ca56b5dafe4b6777aafe5fc.tar.gz |
Merge branch '41416-making-instance-wide-data-tools-more-accessible' into 'master'
Resolve "Making instance-wide data tools more accessible"
Closes #41416 and #48507
See merge request gitlab-org/gitlab-ce!20874
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180718005113_add_instance_statistics_visibility_to_application_setting.rb | 20 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 21 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 diff --git a/db/schema.rb b/db/schema.rb index 97e7e28df09..905786172a2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -168,6 +168,7 @@ ActiveRecord::Schema.define(version: 20180726172057) do t.boolean "enforce_terms", default: false t.boolean "mirror_available", default: true, null: false t.boolean "hide_third_party_offers", default: false, null: false + t.boolean "instance_statistics_visibility_private", default: false, null: false end create_table "audit_events", force: :cascade do |t| |