summaryrefslogtreecommitdiff
path: root/db/fixtures/development/07_milestones.rb
blob: a43116829d978032bbae30c695ed120c590cfc67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Gitlab::Seeder.quiet do
  Project.all.each do |project|
    (1..5).each  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