Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for virtual parent_id and root_id #679

Open
kbrock opened this issue Mar 21, 2024 · 0 comments
Open

add support for virtual parent_id and root_id #679

kbrock opened this issue Mar 21, 2024 · 0 comments

Comments

@kbrock
Copy link
Collaborator

kbrock commented Mar 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant