On Thu, Aug 19, 2010 at 8:05 AM, Fritz Trapper <li...@ruby-forum.com> 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. [1] http://api.rubyonrails.org/classes/ActiveRecord/Base.html > Is there any description, how to do this? For STI make a table for the base class and subclass arbitrarily. -- med vänlig hälsning David JH -- 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-t...@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.