diff options
author | Dennis Tang <dennis@dennistang.net> | 2018-07-10 13:20:05 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-07-10 13:20:05 +0000 |
commit | fe268175a20a517d31de7edd1701bcb35ecfae5b (patch) | |
tree | 2a00eb3acd05009121757316594a76c24d3188a1 /db | |
parent | 3d4873fa64c833c71ab7ee274002d854eb93ef96 (diff) | |
download | gitlab-ce-fe268175a20a517d31de7edd1701bcb35ecfae5b.tar.gz |
Resolve "Disable GCP free credit banner at instance level"
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180704204006_add_hide_third_party_offers_to_application_settings.rb | 18 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 20 insertions, 1 deletions
diff --git a/db/migrate/20180704204006_add_hide_third_party_offers_to_application_settings.rb b/db/migrate/20180704204006_add_hide_third_party_offers_to_application_settings.rb new file mode 100644 index 00000000000..6631c5d1b6c --- /dev/null +++ b/db/migrate/20180704204006_add_hide_third_party_offers_to_application_settings.rb @@ -0,0 +1,18 @@ +class AddHideThirdPartyOffersToApplicationSettings < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default(:application_settings, :hide_third_party_offers, + :boolean, + default: false, + allow_null: false) + end + + def down + remove_column(:application_settings, :hide_third_party_offers) + end +end diff --git a/db/schema.rb b/db/schema.rb index 1898dfc6022..75a1960e2f8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180702120647) do +ActiveRecord::Schema.define(version: 20180704204006) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -167,6 +167,7 @@ ActiveRecord::Schema.define(version: 20180702120647) do t.boolean "allow_local_requests_from_hooks_and_services", default: false, null: false t.boolean "enforce_terms", default: false t.boolean "mirror_available", default: true, null: false + t.boolean "hide_third_party_offers", default: false, null: false end create_table "audit_events", force: :cascade do |t| |