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:
Diffstat (limited to 'db/fixtures/development/15_award_emoji.rb')
-rw-r--r--db/fixtures/development/15_award_emoji.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/db/fixtures/development/15_award_emoji.rb b/db/fixtures/development/15_award_emoji.rb
index 3ac3fea43a5..e195da931ed 100644
--- a/db/fixtures/development/15_award_emoji.rb
+++ b/db/fixtures/development/15_award_emoji.rb
@@ -7,8 +7,11 @@ Gitlab::Seeder.quiet do
project.team.users.sample(2) do |user|
issue.create_award_emoji(emoji.sample, user)
- note = issue.notes.sample
- note.create_award_emoji(emoji.sample, user)
+ issue.notes.sample(2).each do |note|
+ next if note.system?
+ note.create_award_emoji(emoji.sample, user)
+ end
+
print '.'
end
end
@@ -19,8 +22,11 @@ Gitlab::Seeder.quiet do
project.team.users.sample(2).each do |user|
mr.create_award_emoji(emoji.sample, user)
- note = mr.notes.sample
- note.create_award_emoji(emoji.sample, user)
+ mr.notes.sample(2).each do |note|
+ next if note.system?
+ note.create_award_emoji(emoji.sample, user)
+ end
+
print '.'
end
end