On 22 May 2011 09:37, Wolfgang <[email protected]> wrote:
> Hello Guys,
>
> does anybody know wheter RoR is able to implement a generalisation of
> a database? I didn't find any solution for that on the internet.
>
> Example
>
> Person : Customer
>
>
> or
>
> Person : Employee
>
> in the database such a generalisation is characterized by having the
> same PK in Customer and Person or Employee and Person!

Would Single Table Inheritance (STI) do what you want?

Colin

-- 
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