I have a Rails app with two models, call them transaction and item. Transactions are created during a checkout flow, and have an associated item
transaction
item