[Nitro] nice post

George Moschovitis george.moschovitis at gmail.com
Wed Aug 2 11:45:52 EDT 2006

> The simplest is to put all classes in the inheritance chain in a single
> table (which is what Tangram does).

Og implements the Single Table Inheritance pattern. Have a look at

test/og/tc_inheritance.rb for example.

>  Another way is to duplicate the
> table for the subclass with the same columns as the super class and then
> add columns to this new table for the new attributes defined in the
> subclass.

This is the defaultfor Og, ie what Og does if no STI directive is given.



More information about the Nitro-general mailing list