Polymorphic compatible with HABTM?

Can you use polymorphic with a habtm relationship?

If so I would assume the join table would contain both the
foreign key and the type for both sides of the table. The
API documentation is unclear, although it may be out of date.

I would prefer not to. I am trying to model a Person, who
may be associated with many different models. A person
may also be a member of one or more Teams, each of which
has zero or more Persons.

Don Mc

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs