2018-11-13 07:27:31 +00:00
|
|
|
class CleanupMergeRequestsAllowMaintainerToPushRename < ActiveRecord::Migration[4.2]
|
2018-05-23 01:54:57 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2018-06-08 13:12:51 +00:00
|
|
|
# NOOP
|
2018-05-23 01:54:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2018-06-08 13:12:51 +00:00
|
|
|
if column_exists?(:merge_requests, :allow_collaboration)
|
2018-07-25 08:59:23 +00:00
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2018-06-08 13:12:51 +00:00
|
|
|
rename_column_concurrently :merge_requests, :allow_collaboration, :allow_maintainer_to_push
|
|
|
|
end
|
2018-05-23 01:54:57 +00:00
|
|
|
end
|
|
|
|
end
|