In my app, an Event has multiple items associated with it, potentially all of different types. For example, a "User ate a Banana" Event would have a User and a Banana associated with it.
It seems like one way to accomplish this would be to have a polymorphic join table with 3 fields: event_id, attachable_type, and attachable_id, where attachable is the polymorphic type.
Is this possible and/or am I way off base here?