Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20180523042841_rename_merge_requests_allow_maintainer_to_push.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 131dca1fbc293cb1b9a53c7500b793aff137b29b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class RenameMergeRequestsAllowMaintainerToPush < ActiveRecord::Migration[4.2]
  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