fixes Booth creation in dev_seeds
This commit is contained in:
@@ -422,8 +422,9 @@ puts "Creating Poll Questions"
|
|||||||
puts " #{question.title}"
|
puts " #{question.title}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
puts "Creating Poll Booths"
|
||||||
10.times.each_with_index do |i|
|
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
|
end
|
||||||
|
|
||||||
puts "Creating Poll Question from Proposals"
|
puts "Creating Poll Question from Proposals"
|
||||||
|
|||||||
Reference in New Issue
Block a user