20 lines
619 B
Ruby
20 lines
619 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddGroupOwnersCanManageDefaultBranchProtectionToApplicationSettings < ActiveRecord::Migration[6.0]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
add_column_with_default(:application_settings, # rubocop:disable Migration/AddColumnWithDefault
|
|
: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
|