From 384cc7f5ea855d4d05a5770ae0c87c5fc7e42382 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 8 Dec 2014 12:20:40 +0100 Subject: [PATCH] changed answer#content column type to allow longer answers --- .../20141208111714_change_answer_content_column_type.rb | 7 +++++++ db/schema.rb | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20141208111714_change_answer_content_column_type.rb diff --git a/db/migrate/20141208111714_change_answer_content_column_type.rb b/db/migrate/20141208111714_change_answer_content_column_type.rb new file mode 100644 index 00000000..f882ba97 --- /dev/null +++ b/db/migrate/20141208111714_change_answer_content_column_type.rb @@ -0,0 +1,7 @@ +class ChangeAnswerContentColumnType < ActiveRecord::Migration + def change + change_table :answers do |t| + t.change :content, :text + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 15b65050..213bfe0a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,13 +11,13 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20141207194424) do +ActiveRecord::Schema.define(version: 20141208111714) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "answers", force: true do |t| - t.string "content" + t.text "content" t.integer "question_id" t.integer "comment_count", default: 0, null: false t.integer "user_id"