@@ -4,7 +4,7 class AddIssuesNestedSetsColumns < ActiveRecord::Migration | |||||
4 | add_column :issues, :root_id, :integer, :default => nil |
|
4 | add_column :issues, :root_id, :integer, :default => nil | |
5 | add_column :issues, :lft, :integer, :default => nil |
|
5 | add_column :issues, :lft, :integer, :default => nil | |
6 | add_column :issues, :rgt, :integer, :default => nil |
|
6 | add_column :issues, :rgt, :integer, :default => nil | |
7 |
|
7 | |||
8 | Issue.update_all("parent_id = NULL, root_id = id, lft = 1, rgt = 2") |
|
8 | Issue.update_all("parent_id = NULL, root_id = id, lft = 1, rgt = 2") | |
9 | end |
|
9 | end | |
10 |
|
10 |
General Comments 0
You need to be logged in to leave comments.
Login now