diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-07-07 10:51:13 +0300 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-07-29 12:50:39 +0300 |
commit | f8a04e15371815ad39e2c66056db4ab0439555f4 (patch) | |
tree | f680c26a8800bb64d1efadd4e6d4e68282971125 /db/fixtures | |
parent | 134fe5af83167f95205a080f7932452de7d77496 (diff) |
Add seeds for protected branches.
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/16_protected_branches.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/fixtures/development/16_protected_branches.rb b/db/fixtures/development/16_protected_branches.rb new file mode 100644 index 00000000000..103c7f9445c --- /dev/null +++ b/db/fixtures/development/16_protected_branches.rb @@ -0,0 +1,12 @@ +Gitlab::Seeder.quiet do + admin_user = User.find(1) + + Project.all.each do |project| + params = { + name: 'master' + } + + ProtectedBranches::CreateService.new(project, admin_user, params).execute + print '.' + end +end |