Forum: Ruby on Rails RE: Re: One model won't work like the others, generating we

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8f15d89f469605e9e07a8b5ce5d3d5d1?d=identicon&s=25 unknown (Guest)
on 2006-04-13 19:27
(Received via mailing list)
Rails assumes tables that have a column called type are using a single
inheritance pattern. For example, if you had a model called Article and
then had a model called News and another called Feature that both
inherit from Article. You can use a single table to represent both child
types data. The type column tells rails which model should be used to
create the object.

sean
This topic is locked and can not be replied to.