@@ -395,6 +395,7 class Project < ActiveRecord::Base | |||||
395 |
|
395 | |||
396 | # Recalculates all lft and rgt values based on project names |
|
396 | # Recalculates all lft and rgt values based on project names | |
397 | # Unlike Project.rebuild!, these values are recalculated even if the tree "looks" valid |
|
397 | # Unlike Project.rebuild!, these values are recalculated even if the tree "looks" valid | |
|
398 | # Used in BuildProjectsTree migration | |||
398 | def self.rebuild_tree! |
|
399 | def self.rebuild_tree! | |
399 | transaction do |
|
400 | transaction do | |
400 | update_all "lft = NULL, rgt = NULL" |
|
401 | update_all "lft = NULL, rgt = NULL" |
General Comments 0
You need to be logged in to leave comments.
Login now