debian-mirror-gitlab/db/post_migrate/20180523125103_cleanup_merge_requests_allow_maintainer_to_push_rename.rb

19 lines
440 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
class CleanupMergeRequestsAllowMaintainerToPushRename < ActiveRecord::Migration
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