gitlab-org--gitlab-foss/db/fixtures/development/13_comments.rb
Robert Speicher 9789b56a31 Update ffaker gem
Adds a version requirement which it didn't have before, at 2.0.0. This
version has breaking API changes in that the namespace is now `FFaker`
instead of `Faker`.
2015-05-20 19:22:00 -04:00

31 lines
682 B
Ruby

Gitlab::Seeder.quiet do
Issue.all.each do |issue|
project = issue.project
project.team.users.each do |user|
note_params = {
noteable_type: 'Issue',
noteable_id: issue.id,
note: FFaker::Lorem.sentence,
}
Notes::CreateService.new(project, user, note_params).execute
print '.'
end
end
MergeRequest.all.each do |mr|
project = mr.project
project.team.users.each do |user|
note_params = {
noteable_type: 'MergeRequest',
noteable_id: mr.id,
note: FFaker::Lorem.sentence,
}
Notes::CreateService.new(project, user, note_params).execute
print '.'
end
end
end