debian-mirror-gitlab/db/migrate/20201214000000_change_mr_allow_maintainer_to_push_default.rb
2021-03-11 19:13:27 +05:30

20 lines
458 B
Ruby

# frozen_string_literal: true
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