yes, polymorphic association.




On Feb 5, 2:08 am, George Bray <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to