Forum: Ruby on Rails Which Association?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
George Bray (Guest)
on 2009-02-05 01:09
(Received via mailing list)
I have a number of models and each has a Status.  I want to have a
Status table to contain all statuses for all models. I'd prefer not to
intermediary join tables for each model.

Lecturn.status_id  ->
Capturer.status_id  ->
Recording.status_id  ->

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


George Bray, The Australian National University, Canberra, Australia.
Ahmad (Guest)
on 2009-02-05 18:50
(Received via mailing list)
yes, polymorphic association.
This topic is locked and can not be replied to.