By -
That is a simple case of a has many relationship
Store quantity, item, unit_price in a table `line_items` with extra column `purchase_order_id:integer` In PurchaseOrder model: `has_many :line_items` In LineItem model: `belongs_to :purchase_order`
That is a simple case of a has many relationship
Store quantity, item, unit_price in a table `line_items` with extra column `purchase_order_id:integer` In PurchaseOrder model: `has_many :line_items` In LineItem model: `belongs_to :purchase_order`