diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index 5bdd51606..a8d592ca7 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -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"