changed answer#content column type to allow longer answers
This commit is contained in:
parent
dce6fc8d74
commit
384cc7f5ea
|
@ -0,0 +1,7 @@
|
|||
class ChangeAnswerContentColumnType < ActiveRecord::Migration
|
||||
def change
|
||||
change_table :answers do |t|
|
||||
t.change :content, :text
|
||||
end
|
||||
end
|
||||
end
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue