debian-mirror-gitlab/db/migrate/20160705054952_add_protected_branches_merge_access.rb

19 lines
604 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
2017-09-10 17:25:29 +05:30
# rubocop:disable Migration/Timestamps
2019-01-03 12:48:30 +05:30
class AddProtectedBranchesMergeAccess < ActiveRecord::Migration
2016-09-13 17:45:13 +05:30
DOWNTIME = false
def change
create_table :protected_branch_merge_access_levels do |t|
t.references :protected_branch, index: { name: "index_protected_branch_merge_access" }, foreign_key: true, null: false
2018-11-18 11:00:15 +05:30
# Gitlab::Access::MAINTAINER == 40
2016-09-13 17:45:13 +05:30
t.integer :access_level, default: 40, null: false
t.timestamps null: false
end
end
end