debian-mirror-gitlab/db/fixtures/development/07_milestones.rb
2015-10-24 18:46:33 +05:30

16 lines
380 B
Ruby

Gitlab::Seeder.quiet do
Project.all.each do |project|
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