changed answer#content column type to allow longer answers

This commit is contained in:
nilsding 2014-12-08 12:20:40 +01:00
parent dce6fc8d74
commit 384cc7f5ea
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,7 @@
class ChangeAnswerContentColumnType < ActiveRecord::Migration
def change
change_table :answers do |t|
t.change :content, :text
end
end
end

View File

@ -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"