I’m trying to create an association that is not based off a table’s ID
I want to be able to create the association using the SKU column, so
that if a i have a product with SKU ‘abc’, I could call
product.inventory and get the inventory with SKU ‘abc’. Is this
possible? I know there is a foreign_key attribute in associations, but
that doesn’t solve the whole issue since it ends up comparing ID vs SKU,
not SKU vs SKU.
Thanks for your help!