##// END OF EJS Templates
Adds index on issues nested set columns....
Jean-Philippe Lang -
r3464:8cc519e7637d
parent child
Show More
@@ -0,0 +1,9
1 class AddIndexOnIssuesNestedSet < ActiveRecord::Migration
2 def self.up
3 add_index :issues, [:root_id, :lft, :rgt]
4 end
5
6 def self.down
7 remove_index :issues, [:root_id, :lft, :rgt]
8 end
9 end
General Comments 0
You need to be logged in to leave comments. Login now