Adds index on issues nested set columns.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-03-13 17:17:10 +00:00
parent 508df4a33a
commit 8cc519e763
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class AddIndexOnIssuesNestedSet < ActiveRecord::Migration
def self.up
add_index :issues, [:root_id, :lft, :rgt]
end
def self.down
remove_index :issues, [:root_id, :lft, :rgt]
end
end