I have the following class:
class CartItem < ApplicationRecord belongs_to :inventory_item, polymorphic: true end
Where an inventory item