I am following the instructions on Agile Web D. with Rails book
“Iteratio E1: Capturing
an Order” section. When I run the migrations I get the following error.
– execute("alter table line_items \n
add constraint fk_line_item_products \n
foreign key (product_id) references products(id)")
Mysql::Error: Table ‘depot_development.line_items’ doesn’t exist: alter
add constraint fk_line_item_products
foreign key (product_id) references products(id)
(See full trace by running task with --trace)
Could some one please tell me how to fix this problem? TIA.
Hone your problem-solving skills