Should I include other fields in a HABTM table?
I would like an Order object to be comprised of many Product objects, so I set up a HABTM relationship on object. I'm wondering if it's "correct" (or the Ruby/Rails) way to also include additional data within the HABTM table. For instance, if I need to compute the subtotal and there's a chance the line-item totals might need to be overridden, do I store that as part of the association table, or do I need a LineItem object or something better? Thanks ActiveRecord::Schema.define(version: 3) do create_table "orders", force: true do |t| t.string "order_id", null: false t.string "order_status",