summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb
blob: 7fab09e38df3dcb76bf4b7447c7f6237af7ce686 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddMissingIndexesToWikiPages < ActiveRecord::Migration
  def self.up
    add_index :wiki_pages, :wiki_id
    add_index :wiki_pages, :parent_id
  end

  def self.down
    remove_index :wiki_pages, :wiki_id
    remove_index :wiki_pages, :parent_id
  end
end