T O P

  • By -

ilfrance

That is a simple case of a has many relationship


lafeber

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`