My girlfriend and I have been dating for two years, and she just told me
has an STI…
Actually, I currently have three different models, like: Dog, Whale,
They all have some similar attributes, but, they are unique enough to
break into their own models. I could use STI, but I think the table
just have too many columns.
Now, I wanted to let the Dog’s, Whale’s and Monkey’s be buddies, and
track of their relationships.
I created a Buddies table (with monkey_id, dog_id, whale_id), and had
has_many relationships to link them all up.
This will work… however, if I wanted to list all of a Monkey’s
it get’s tricky.
I have to query the Buddies table to get the relationships, then query
the Whale and Monkey to get the appropriate objects back.
I saw Chad’s HABTM example using STI in the Recipes book… but I’m
to stay away from STI.
Any thoughts ? Also, sorry for the bizzare post… I have the flu !