Hello,

Suppose I have 2 models Human and Person and I want to inherit one from
another so that I could use 'human' model/migration as a generic builder
for smiliar objects as 'person', for instance this with the following
table structure:

human table:
id
weight
size

person table:
id
name
surname
address

Is it possible to make such table inheritance in rails to be able to
have 'base' model for those that are submodels with different columns?

Thanks in advance!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to