P2 Active Record People Skills
- Use Active Record Migrations
- Use Active Record Queries
- Use Active Record to create Associations between database tables
In order for you to better understand your competence with ActiveRecord, we've built a challenge that is purely ActiveRecord. No Sinatra, Javascript, jQuery, or anything. Yay!
###Release 0 :
Demonstrate you can create working Ruby code from scratch that uses ActiveRecord to model a many-to-many relationship.
Start with the skeleton in ./source/ar-people-skills
. Build
ActiveRecord Models, Migrations, Validations, and Relations to model the
following user stories:
- A
User
has many skills and aSkill
can be assigned to many users. - A
User
has a proficiency rating for each of their skills. - Multiple
Skill
s can not be saved with the same name.
(Hint: ) You will need to create several instance methods on the models for the driver code to pass.
- You can create a
User
and assign them skills fromrake console
- You can determine a
User
s proficiency rating for a particularSkill
inrake console
- running
ruby driver_code.rb
results in all true statements
- "Office Space": a film about life in the tech industry you should see