yes, polymorphic association.
On Feb 5, 2:08 am, George Bray
<georgeb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---