Rebuild project hierarchy
I have tried a massive update of projects parent, directly from the data base, changing the parent_id. I was not yet aware of the lft and rgt fields which are meant to manage project hierarchy.
Now my projects hierarchy is completely messed up. What is displayed on the projects view does not correspond to the reality.
Going through the forum I have seen some inputs about this, but too old, and the solution given are not longer usable, I am afraid (paths, names...)
Please how to rebuild my project tree on redmine 3.4 ?
Thanks in advance
RE: Rebuild project hierarchy - Added by Dorice Nyamy 9 months ago
Answering to my post
I have found the solution ;
Calling "Project.rebuild_tree!" from rails console ("rails console -e production") did the trick !
RE: Rebuild project hierarchy - Added by Indra Kurnia 3 months ago
I am facing same problem.
Thanks for the solution. it work like a charm.