diff --git a/db/migrate/20150304135935_add_created_atto_qanswer.rb b/db/migrate/20150304135935_add_created_atto_qanswer.rb new file mode 100644 index 00000000..a0a2f4cf --- /dev/null +++ b/db/migrate/20150304135935_add_created_atto_qanswer.rb @@ -0,0 +1,6 @@ +class AddCreatedAttoQanswer < ActiveRecord::Migration + def change + add_column :qanswers, :created_at, :datetime + add_column :qanswers, :updated_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 7c94011c..e5e78cce 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -277,6 +277,8 @@ ActiveRecord::Schema.define(version: 20141130182139) do create_table "qanswers", force: true do |t| t.integer "question_id" t.integer "answer_id" + t.datetime "created_at" + t.datetime "updated_at" end create_table "qanswers_registrations", id: false, force: true do |t|