diff options
author | Mark Chao <mchao@gitlab.com> | 2018-06-08 16:12:51 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-06-08 16:12:51 +0300 |
commit | 68cb1c2651fde0ae009beed10f81a74172ceeab1 (patch) | |
tree | f8a191e5916b38d00abc747d35cd3e77dd640296 /db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb | |
parent | e1f9f3c6ac8a71c8196c8eae7d4c573899466cdf (diff) |
Revert rename allow collaboration column
Diffstat (limited to 'db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb')
-rw-r--r-- | db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb b/db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb index 975bdfe70f4..41bc7b71694 100644 --- a/db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb +++ b/db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb @@ -6,10 +6,12 @@ class RenameMergeRequestsAllowMaintainerToPush < ActiveRecord::Migration disable_ddl_transaction! def up - rename_column_concurrently :merge_requests, :allow_maintainer_to_push, :allow_collaboration + # NOOP end def down - cleanup_concurrent_column_rename :merge_requests, :allow_collaboration, :allow_maintainer_to_push + if column_exists?(:merge_requests, :allow_collaboration) + cleanup_concurrent_column_rename :merge_requests, :allow_collaboration, :allow_maintainer_to_push + end end end |