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