Remove 'description' attribute from Poll::Question

This avoid an exception when seeding the database

See PR #1977
This commit is contained in:
Angel Perez
2017-10-04 15:49:15 -04:00
parent 861b583b02
commit a83c259a04

View File

@@ -559,7 +559,6 @@ print "Creating Poll Questions"
open_at = rand(2.months.ago..2.months.from_now)
question = Poll::Question.create!(author: author,
title: Faker::Lorem.sentence(3).truncate(60),
description: description,
valid_answers: Faker::Lorem.words((2..7).to_a.sample).join(', '),
poll: poll)
end