In my rails app i have a two models model customer (id, name, email) and cars(id, model, year).
customer has many cars cars belong to customer
1) I want to add the customer id field to the cars model. Will adding t.integer :customer_id to the migration file be enough?
2) Once added how would i start populating the said cars db?
(I just started on rails last week so would appreciate any help)