I have a simple question, but wasn’t sure of the best way to do this. So
any help is greatly appreciated.
Let’s say I have users model and a vacations model. A user can add a
vacation to the system, therefore that vacation belongs to that user as
to say “this user added this vacation”. This relationship is set up by
adding a user_id field in the vacations table. Now a vacation can be
reserved by only one user. So I add a field called “reserved_by_user_id”
in the vacations table. I now have 2 relationships between the vacations
and users model. What is the best way to do this? I’d like to be able to
Thanks for your help.