debian-mirror-gitlab/db/fixtures/development/07_milestones.rb
2017-08-17 22:00:37 +05:30

18 lines
412 B
Ruby

require './spec/support/sidekiq'
Gitlab::Seeder.quiet do
Project.all.each do |project|
5.times do |i|
milestone_params = {
title: "v#{i}.0",
description: FFaker::Lorem.sentence,
state: [:active, :closed].sample,
}
milestone = Milestones::CreateService.new(
project, project.team.users.sample, milestone_params).execute
print '.'
end
end
end