big start on QuizStatus
This commit is contained in:
6
db/migrate/20160727154057_add_quiz_to_candidate.rb
Normal file
6
db/migrate/20160727154057_add_quiz_to_candidate.rb
Normal 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
|
@ -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
|
||||
|
Reference in New Issue
Block a user