summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-12-26 15:05:17 +0900
committerShinya Maeda <shinya@gitlab.com>2018-12-26 15:05:17 +0900
commitfcfc7e68400828de39a0157a976b6d02b6ca5e40 (patch)
tree070dac1abde07f75c3a19f512da992212a4eee09 /db
parentc735f271c8fd5cad435d7790841896db243073ae (diff)
downloadgitlab-ce-fcfc7e68400828de39a0157a976b6d02b6ca5e40.tar.gz
Add new line and comments
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/24_forks.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/fixtures/development/24_forks.rb b/db/fixtures/development/24_forks.rb
index f847d7ebd64..5eb5956ec74 100644
--- a/db/fixtures/development/24_forks.rb
+++ b/db/fixtures/development/24_forks.rb
@@ -4,6 +4,10 @@ Sidekiq::Testing.inline! do
Gitlab::Seeder.quiet do
User.all.sample(10).each do |user|
source_project = Project.public_only.sample
+
+ ##
+ # 04_project.rb might not have created a public project because
+ # we use randomized approach (e.g. `Array#sample`).
return unless source_project
fork_project = Projects::ForkService.new(source_project, user, namespace: user.namespace).execute