To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 20100313171051_add_index_on_issues_nested_set.rb @ 443:350acce374a2

History | View | Annotate | Download (200 Bytes)

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