[Nitro] schema_inheritance

George Moschovitis george.moschovitis at gmail.com
Mon Jan 9 06:26:34 EST 2006


I created a test case for this and it passes. There are some problem
with evolution though, some warnings.... perhaps Rob should take a
look at this (tc_inheritance2.rb)

regards,
George.



On 12/27/05, Emmanuel Piperakis <epiperak at softlab.ece.ntua.gr> wrote:
> > use:
> >
> > is SchemaInheritanceBase
> >
> > perhaps we can improve the name.
>
> G. the initial email I posted reported a bug in the 0.26, where when I use
> the schema_inheritance only the frist subclasss' fields are added to the
> superclass. That must be realy easy to fix, and it worked for 0.25 and it
> prevents me from upgrading.
>
> e.g
>
> class Project
>   property :koko, String
>   schema_inheritance
> end
>
> class FProject < Project
>   property :haha, String
> end
>
> class DProject < Project
>   property :kaka, String
> end
>
> ONLY :haha is added and NOT :kaka. I tried switching the order of the
> classes (first DProject and then FProject) and then only :kaka was added
> to the table and NOT :haha, therefore there a very simple problem. You
> only take one subclass...
>
> Could you please fix this?
>
> Thanx
>
> Emmanouil Piperakis (epiperak at cs.ntua.gr)
> {To explore is Human, to Create is Devine,
>   To teach is Primal, to Rule is Sin}
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list