simple question attachments

This commit is contained in:
Mark Moser
2016-08-03 08:55:30 -05:00
parent a3eab2b27a
commit f4abe5e281
7 changed files with 28 additions and 5 deletions

View File

@ -0,0 +1,5 @@
class AddAttachmentsToQuestions < ActiveRecord::Migration[5.0]
def change
add_column :questions, :attachment, :string
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160727154057) do
ActiveRecord::Schema.define(version: 20160803003932) do
create_table "answers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "candidate_id"
@ -51,6 +51,7 @@ ActiveRecord::Schema.define(version: 20160727154057) do
t.boolean "active"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "attachment"
t.index ["active"], name: "index_questions_on_active", using: :btree
t.index ["quiz_id"], name: "index_questions_on_quiz_id", using: :btree
t.index ["sort"], name: "index_questions_on_sort", using: :btree