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"