RE: Re: One model won't work like the others, generating we

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs