Commit 6e73b208a9f69c68bf8575d902d6662eb3db0662
1 parent
ecae936d
Exists in
spb-stable
and in
3 other branches
Add comments fixtures for development
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,13 @@ | @@ -0,0 +1,13 @@ | ||
1 | +ActiveRecord::Base.observers.disable :all | ||
2 | + | ||
3 | +Issue.all.limit(10).each_with_index do |issue, i| | ||
4 | + 5.times do | ||
5 | + Note.seed(:id, [{ | ||
6 | + project_id: issue.project.id, | ||
7 | + author_id: issue.project.team.users.sample.id, | ||
8 | + note: Faker::Lorem.sentence, | ||
9 | + noteable_id: issue.id, | ||
10 | + noteable_type: 'Issue' | ||
11 | + }]) | ||
12 | + end | ||
13 | +end |