@ -3,7 +3,6 @@ class OrderTasksUsingTree < ActiveRecord::Migration
last_task = {}
ActiveRecord::Base.transaction do
Task.find(:all, :conditions => "id <> root_id", :order => "project_id ASC, fixed_version_id ASC, position ASC").each do |t|
t.remove_from_list
t.move_after last_task[t.parent_id] if last_task[t.parent_id]
last_task[t.parent_id] = t.id