2018-12-23 12:14:25 +05:30
|
|
|
class CleanupMergeRequestsAllowMaintainerToPushRename < ActiveRecord::Migration[4.2]
|
2018-11-08 19:23:39 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
# NOOP
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
if column_exists?(:merge_requests, :allow_collaboration)
|
2018-11-18 11:00:15 +05:30
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2018-11-08 19:23:39 +05:30
|
|
|
rename_column_concurrently :merge_requests, :allow_collaboration, :allow_maintainer_to_push
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|