big start on QuizStatus

This commit is contained in:
Mark Moser
2016-07-27 11:17:50 -05:00
parent 487351c1b0
commit 7a32057825
16 changed files with 173 additions and 17 deletions

View File

@ -0,0 +1,6 @@
class AddQuizToCandidate < ActiveRecord::Migration[5.0]
def change
add_column :candidates, :quiz_id, :integer
add_index :candidates, :quiz_id
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: 20160726193255) do
ActiveRecord::Schema.define(version: 20160727154057) do
create_table "answers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "candidate_id"
@ -35,6 +35,8 @@ ActiveRecord::Schema.define(version: 20160726193255) do
t.boolean "reminded"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "quiz_id"
t.index ["quiz_id"], name: "index_candidates_on_quiz_id", using: :btree
t.index ["recruiter_id"], name: "index_candidates_on_recruiter_id", using: :btree
t.index ["test_hash"], name: "index_candidates_on_test_hash", unique: true, using: :btree
end