summaryrefslogtreecommitdiffstats
path: root/db/migrate/20100313171051_add_index_on_issues_nested_set.rb
blob: b624c22492c21c39915359260035fd8fb3242545 (plain)
1
2
3
4
5
6
7
8
9
class AddIndexOnIssuesNestedSet < ActiveRecord::Migration[4.2]
  def self.up
    add_index :issues, [:root_id, :lft, :rgt]
  end

  def self.down
    remove_index :issues, [:root_id, :lft, :rgt]
  end
end