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: 975bdfe70f45cda5afdd8019e034284acc1e02f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class RenameMergeRequestsAllowMaintainerToPush < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

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

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