diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20100313132032_add_issues_nested_sets_columns.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20100313132032_add_issues_nested_sets_columns.rb b/db/migrate/20100313132032_add_issues_nested_sets_columns.rb index e7d03e980..2467f6f67 100644 --- a/db/migrate/20100313132032_add_issues_nested_sets_columns.rb +++ b/db/migrate/20100313132032_add_issues_nested_sets_columns.rb @@ -4,7 +4,7 @@ class AddIssuesNestedSetsColumns < ActiveRecord::Migration add_column :issues, :root_id, :integer, :default => nil add_column :issues, :lft, :integer, :default => nil add_column :issues, :rgt, :integer, :default => nil - + Issue.update_all("parent_id = NULL, root_id = id, lft = 1, rgt = 2") end |