summaryrefslogtreecommitdiff
path: root/db/migrate/20180523042841_rename_merge_requests_allow_maintainer_to_push.rb
blob: 41bc7b71694d79ddb0aa0510b269dd9a9c231895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class RenameMergeRequestsAllowMaintainerToPush < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    # NOOP
  end

  def down
    if column_exists?(:merge_requests, :allow_collaboration)
      cleanup_concurrent_column_rename :merge_requests, :allow_collaboration, :allow_maintainer_to_push
    end
  end
end