Hello,
I hope somebody can help me figure out how to solve the following
problem.
These are the models that I am trying to associate one to the other.
Location
Organization => league, club, etc.
Event => competition, class, etc.
League and Club (and others) are subclasses of Organization
Competition and Class (and others) are subclasses of Event
An event and an organization have many locations and a location has many
organizations and events.
I have tried using STI at first and then polymorphic associations. I
didn’t get too far, because this example uses two layers of polymorphic
associations. Can someone give me a starting point at least?
Thanks,
Andrei