summaryrefslogtreecommitdiff
path: root/db/fixtures/development/16_protected_branches.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/16_protected_branches.rb')
-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