CCirbo / Little_Shop

1 stars 2 forks source link

Create Model Files in App #4

Closed TDManning closed 3 weeks ago

TDManning commented 4 weeks ago

Create model files for each of these resources. You won’t need to manipulate all of these models, but it’s important these files exist, and have the necessary ActiveRecord relationship methods in them (either belongs_to or has_many). Add (and test!) the relationships for each model. You might notice that InvoiceItem is a bit different and requires 2 belongs_to relationships. That’s okay! Add both, and we’ll dive more into the specifics of what’s happening here in Mod 3. NOTE The main learning goals of the project are the Rails API endpoints, not the process of importing CSV data. Avoid starting out with a Rake task to do the import and follow these instructions instead. If in doubt, ask your instructors first.

NOTE If your rails new ... project name from above is NOT exactly called “little_shop” you will need to modify the cmd variable to change the -d parameter from little_shop_development to _development instead. If you have questions, ask your instructors.

Finally, commit your setup steps and push to a new repo. Share that new repo with your project partner(s). Be sure to add them as a collaborator.