Add more attributes to candidate - completes: #100

This commit is contained in:
Mark Moser
2017-02-27 11:11:28 -06:00
parent 7f8e74c6b3
commit 4ba35ccf33
8 changed files with 55 additions and 2 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddAttributesToCandidate < ActiveRecord::Migration[5.0]
def change
add_column :candidates, :skill_needs, :string, after: :project
add_column :candidates, :position, :string, after: :project
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: 20170210165110) do
ActiveRecord::Schema.define(version: 20170227154554) do
create_table "answers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "candidate_id"
@ -31,6 +31,8 @@ ActiveRecord::Schema.define(version: 20170210165110) do
t.string "email"
t.string "experience"
t.string "project"
t.string "position"
t.string "skill_needs"
t.integer "recruiter_id"
t.boolean "completed"
t.datetime "completed_at"