debian-mirror-gitlab/db/migrate/20200413072059_add_group_owners_can_manage_default_branch_protection_to_application_settings.rb

20 lines
570 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# 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,
: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