fixes Booth creation in dev_seeds

This commit is contained in:
Juanjo Bazán
2016-12-07 15:09:00 +01:00
parent 91d5934567
commit 21c9f2c44b

View File

@@ -422,8 +422,9 @@ puts "Creating Poll Questions"
puts " #{question.title}"
end
puts "Creating Poll Booths"
10.times.each_with_index do |i|
Poll::Booth.create(name: "Booth #{i}", poll: Poll.all.sample)
Poll::Booth.create(name: "Booth #{i}", polls: [Poll.all.sample])
end
puts "Creating Poll Question from Proposals"