2019-02-15 15:39:39 +05:30
|
|
|
class AddHideThirdPartyOffersToApplicationSettings < ActiveRecord::Migration[4.2]
|
2018-11-08 19:23:39 +05:30
|
|
|
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
|