What if you wrote this as:
````
FlavorInventory.find_or_create_by_store_and_flavor(store_id: id, flavor_id: flavor.id)
````