I am using Ahoy Email to track emails I send to my restaurants. However I'dd like to create a relationship like so :
an
AhoyMessage
belongs_to
aRestaurant
a
Restaurant
has_many
AhoyMessages
so that I can access, for example:
ahoy_message.restaurant.phone_number
==> "+33612345678"
I know when I look at the docs that there is an easy way to do so with the User
model, but I can only use my Restaurant
model and hence the example in the doc does not work for my particular case.