As seen in #662, add support for the database to define a parent_id and root_id virtual column.
This makes the sql much easier to generate.
In order to get a pure rails belongs_to :parent, :class => self.class.name (children, ...) working, would still need to find a good way to pass the path and not the parent_id value.
As seen in #662, add support for the database to define a
parent_id
androot_id
virtual column.This makes the sql much easier to generate.
In order to get a pure rails
belongs_to :parent, :class => self.class.name
(children
, ...) working, would still need to find a good way to pass thepath
and not theparent_id
value.