Commit d91f45a6d994c1a3c3986d3a4fee860f4026cc45

Authored by Pius Uzamere
1 parent 6e1baf76

make sure that seed ideas are immediately active

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/question.rb
... ... @@ -58,7 +58,7 @@ class Question < ActiveRecord::Base
58 58 the_ideas.each { |choice_text|
59 59 item = Item.create!({:data => choice_text, :creator => creator})
60 60 puts item.inspect
61   - choice = choices.create!(:item => item, :creator => creator)
  61 + choice = choices.create!(:item => item, :creator => creator, :active => true)
62 62 puts choice.inspect
63 63 }
64 64 end
... ...