AWDWR chapter 10 page 116, need to run script/generate model

Puzzled if the book has skipped a “script/generate” step.

Doing the “Shipping” example in chapter 10 page 116 AWDWR second edition
of the book.

getting a mysql database error

"Mysql::Error: Unknown column ‘line_items.order_id’ in ‘where clause’:
SELECT * FROM line_items WHERE (line_items.order_id = 1) "

And sure enough, the line_items table has no order_id value.

I tried running ruby script/generate model Order but the script wants to
overwrite orders.rb (which has several items in it already).

are you missing the belongs_to :orders at the top of the line_items
model file?