2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
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
|