gitlab-org--gitlab-foss/db/fixtures/development/07_milestones.rb

17 lines
380 B
Ruby
Raw Normal View History

Gitlab::Seeder.quiet do
Project.all.each do |project|
2015-10-13 10:05:04 -04:00
5.times do |i|
milestone_params = {
title: "v#{i}.0",
description: FFaker::Lorem.sentence,
state: ['opened', 'closed'].sample,
}
milestone = Milestones::CreateService.new(
project, project.team.users.sample, milestone_params).execute
print '.'
end
end
end