Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-07-07 10:51:13 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-07-29 12:50:39 +0300
commitf8a04e15371815ad39e2c66056db4ab0439555f4 (patch)
treef680c26a8800bb64d1efadd4e6d4e68282971125 /db/fixtures
parent134fe5af83167f95205a080f7932452de7d77496 (diff)
Add seeds for protected branches.
Diffstat (limited to 'db/fixtures')
-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