From b42bacd588e1ee9491f5156a586130d618cd9701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Checa?= Date: Fri, 20 Oct 2017 17:26:32 +0200 Subject: [PATCH] `most_voted` to false by default --- .../20171019095042_add_most_voted_to_poll_question_answer.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20171019095042_add_most_voted_to_poll_question_answer.rb b/db/migrate/20171019095042_add_most_voted_to_poll_question_answer.rb index e32b7e325..e4650643b 100644 --- a/db/migrate/20171019095042_add_most_voted_to_poll_question_answer.rb +++ b/db/migrate/20171019095042_add_most_voted_to_poll_question_answer.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 29dbe0500..b2c99b9be 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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