Merge pull request #3043 from sjmulder/state-seed

Update seeds for state columns
This commit is contained in:
Dmitriy Zaporozhets 2013-02-20 02:28:44 -08:00
commit e7a5ec3376
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ Gitlab::Seeder.quiet do
project_id: project.id, project_id: project.id,
author_id: user_id, author_id: user_id,
assignee_id: user_id, assignee_id: user_id,
closed: [true, false].sample, state: ['opened', 'closed'].sample,
milestone: project.milestones.sample, milestone: project.milestones.sample,
title: Faker::Lorem.sentence(6) title: Faker::Lorem.sentence(6)
}]) }])

View file

@ -17,7 +17,7 @@ Gitlab::Seeder.quiet do
project_id: project.id, project_id: project.id,
author_id: user_id, author_id: user_id,
assignee_id: user_id, assignee_id: user_id,
closed: [true, false].sample, state: ['opened', 'closed'].sample,
milestone: project.milestones.sample, milestone: project.milestones.sample,
title: Faker::Lorem.sentence(6) title: Faker::Lorem.sentence(6)
}]) }])