Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 723 Bytes

ANSWERS.md

File metadata and controls

21 lines (11 loc) · 723 Bytes

Questions

  1. What is the difference between new and create for a model?

new makes the model, but create makes and also saves

  1. What command followed after with Cat.new will emulate the same behavior as Cat.create?

Cat.save

  1. What is the default integer column that exists on every table but we did NOT define?

ID

  1. What single line of ruby code can insert a cat with the name "Kira" in the database?

Cat.create(name:"kira")

  1. How did you like this homework in comparison with the previous homeworks?

This homework was longer than anticipated. Even with the walkthroughs things were pretty open ended in regards to approaches. I think I learned a little more, but was also found it more frustrating.