summaryrefslogtreecommitdiff
path: root/db/fixtures/development
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-07-07 13:21:13 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-07-29 15:20:39 +0530
commitf8a04e15371815ad39e2c66056db4ab0439555f4 (patch)
treef680c26a8800bb64d1efadd4e6d4e68282971125 /db/fixtures/development
parent134fe5af83167f95205a080f7932452de7d77496 (diff)
downloadgitlab-ce-f8a04e15371815ad39e2c66056db4ab0439555f4.tar.gz
Add seeds for protected branches.
Diffstat (limited to 'db/fixtures/development')
-rw-r--r--db/fixtures/development/16_protected_branches.rb12
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