most_voted to false by default

This commit is contained in:
María Checa
2017-10-20 17:26:32 +02:00
parent e85c98f4b4
commit b42bacd588
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
class AddMostVotedToPollQuestionAnswer < ActiveRecord::Migration
def change
add_column :poll_question_answers, :most_voted, :boolean
add_column :poll_question_answers, :most_voted, :boolean, default: false
end
end

View File

@@ -700,7 +700,7 @@ ActiveRecord::Schema.define(version: 20171019095042) do
t.text "description"
t.integer "question_id"
t.integer "given_order", default: 1
t.boolean "most_voted"
t.boolean "most_voted", default: false
end
add_index "poll_question_answers", ["question_id"], name: "index_poll_question_answers_on_question_id", using: :btree