Which Association?


#1

I have a number of models and each has a Status. I want to have a
single
Status table to contain all statuses for all models. I’d prefer not to
have
intermediary join tables for each model.

Lecturn.status_id -> Status.id
Capturer.status_id -> Status.id
Recording.status_id -> Status.id
etc

Is this a polymorphic association, or is there a better way?

thanks!


George Bray, The Australian National University, Canberra, Australia.


#2

yes, polymorphic association.