updates dev seeds with booths

This commit is contained in:
rgarcia
2016-09-28 11:54:29 +02:00
parent 042cb14dbd
commit f3ad806c8b

View File

@@ -341,4 +341,8 @@ puts "Creating polls"
3.times.each_with_index do |i| 3.times.each_with_index do |i|
Poll.create(name: "Poll #{i}") Poll.create(name: "Poll #{i}")
end
10.times.each_with_index do |i|
Poll::Booth.create(name: "Booth #{i}", poll: Poll.all.sample)
end end