debian-mirror-gitlab/db/fixtures/development/07_milestones.rb

17 lines
380 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
Gitlab::Seeder.quiet do
Project.all.each do |project|
2015-10-24 18:46:33 +05:30
5.times do |i|
2014-09-02 18:07:02 +05:30
milestone_params = {
title: "v#{i}.0",
2015-09-11 14:41:01 +05:30
description: FFaker::Lorem.sentence,
2014-09-02 18:07:02 +05:30
state: ['opened', 'closed'].sample,
}
milestone = Milestones::CreateService.new(
project, project.team.users.sample, milestone_params).execute
print '.'
end
end
end