David J. Hamilton wrote:
> On Thu, Aug 19, 2010 at 8:05 AM, Fritz Trapper <[email protected]> 
> wrote:
>> Is it possible to define a subclass for a model, that defines additional
>> data columns, which are stored in a separate table?
> 
> What you are describing is "Multiple Table Inheritance".  I don't
> think stock rails handles this.  Rails supports "Single Table
> Inheritance"[1] in which you'll store the union of all column types in
> the base table.

But you could use has_one.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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 [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