2020-04-21 15:21:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddGroupOwnersCanManageDefaultBranchProtectionToApplicationSettings < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2020-05-15 15:08:04 +00:00
|
|
|
add_column_with_default(:application_settings, # rubocop:disable Migration/AddColumnWithDefault
|
2020-04-21 15:21:10 +00:00
|
|
|
:group_owners_can_manage_default_branch_protection,
|
|
|
|
:boolean,
|
|
|
|
default: true)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :application_settings, :group_owners_can_manage_default_branch_protection
|
|
|
|
end
|
|
|
|
end
|