20160705054938_add_protected_branches_push_access.rb 606 Bytes
Newer Older
1 2 3
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

4
# rubocop:disable Migration/Timestamps
5
class AddProtectedBranchesPushAccess < ActiveRecord::Migration[4.2]
6 7
  DOWNTIME = false

8 9 10
  def change
    create_table :protected_branch_push_access_levels do |t|
      t.references :protected_branch, index: { name: "index_protected_branch_push_access" }, foreign_key: true, null: false
11

12
      # Gitlab::Access::MAINTAINER == 40
13
      t.integer :access_level, default: 40, null: false
14 15 16 17 18

      t.timestamps null: false
    end
  end
end