summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb
blob: edeca8da7064b6940373ffca67c903888c0bea0d (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddMissingIndexesToWikiPages < ActiveRecord::Migration[4.2]
  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