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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-04-13 21: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.

This topic is locked and can not be replied to.