summaryrefslogtreecommitdiffstats
path: root/db/migrate/20100313171051_add_index_on_issues_nested_set.rb
blob: 4dc9480004bc1f8b29709b239b15facf8d835b1e (plain)
1
2
3
4
5
6
7
8
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