2021-02-05 09:09:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-01-07 09:10:22 +00:00
|
|
|
class ChangeMrAllowMaintainerToPushDefault < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
with_lock_retries do
|
|
|
|
change_column_default :merge_requests, :allow_maintainer_to_push, from: nil, to: true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
with_lock_retries do
|
|
|
|
change_column_default :merge_requests, :allow_maintainer_to_push, from: true, to: nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|