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

20180523125103_cleanup_merge_requests_allow_maintainer_to_push_rename.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9ce4600675a8894af52e0202670a4990d480330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class CleanupMergeRequestsAllowMaintainerToPushRename < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    cleanup_concurrent_column_rename :merge_requests, :allow_maintainer_to_push, :allow_collaboration
  end

  def down
    rename_column_concurrently :merge_requests, :allow_collaboration, :allow_maintainer_to_push
  end
end