remove_from_list is not supported on Task anymore

pull/6827/head
Emiliano Heyns 14 years ago
parent db7eb66a88
commit 89e7a76da0
  1. 1
      db/migrate/015_order_tasks_using_tree.rb

@ -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

Loading…
Cancel
Save