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

Can't get .depth if there is same named column in table #255

Closed
GoodJob opened this issue Jan 15, 2016 · 2 comments
Closed

Can't get .depth if there is same named column in table #255

GoodJob opened this issue Jan 15, 2016 · 2 comments

Comments

@GoodJob
Copy link

GoodJob commented Jan 15, 2016

How can I get depth of the record if it already has .depth attribute in table, which is set to 0. How can I call this function in other way to get depth and set correct number in database? :) It is too much spaghetti adding additional column only because to know what depth is of the record :)

@kbrock
Copy link
Collaborator

kbrock commented Jan 18, 2016

@GoodJob ancestry.split("/").size ?

@kbrock
Copy link
Collaborator

kbrock commented Oct 7, 2016

@GoodJob were you able to solve this problem?

@kbrock kbrock closed this as completed Nov 1, 2016
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

2 participants