From 21c9f2c44b27d27c0ceebe2ab9fc81c3c079f946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Wed, 7 Dec 2016 15:09:00 +0100 Subject: [PATCH] fixes Booth creation in dev_seeds --- db/dev_seeds.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"