Skip to content

add support for virtual parent_id and root_id #679

@kbrock

Description

@kbrock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions