debian-mirror-gitlab/db/migrate/20160715204316_add_request_access_enabled_to_groups.rb
2019-02-15 15:39:39 +05:30

14 lines
369 B
Ruby

# rubocop:disable Migration/UpdateLargeTable
class AddRequestAccessEnabledToGroups < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
def up
add_column_with_default :namespaces, :request_access_enabled, :boolean, default: true
end
def down
remove_column :namespaces, :request_access_enabled
end
end