diff options
| author | Timothy Andrew <mail@timothyandrew.net> | 2016-07-07 13:21:13 +0530 |
|---|---|---|
| committer | Timothy Andrew <mail@timothyandrew.net> | 2016-07-29 15:20:39 +0530 |
| commit | f8a04e15371815ad39e2c66056db4ab0439555f4 (patch) | |
| tree | f680c26a8800bb64d1efadd4e6d4e68282971125 /db/fixtures | |
| parent | 134fe5af83167f95205a080f7932452de7d77496 (diff) | |
| download | gitlab-ce-f8a04e15371815ad39e2c66056db4ab0439555f4.tar.gz | |
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 |
