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

20160705054938_add_protected_branches_push_access.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: de3aefcb1fb391170f54e5b354ce604a71c7cbfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

# rubocop:disable Migration/Timestamps
class AddProtectedBranchesPushAccess < ActiveRecord::Migration
  DOWNTIME = false

  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

      # Gitlab::Access::MAINTAINER == 40
      t.integer :access_level, default: 40, null: false

      t.timestamps null: false
    end
  end
end