summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213332_add_missing_indexes_to_documents.rb
blob: f5190181e3772a40a526cc256e710659388e36b5 (plain)
1
2
3
4
5
6
7
8
9
class AddMissingIndexesToDocuments < ActiveRecord::Migration
  def self.up
    add_index :documents, :category_id
  end

  def self.down
    remove_index :documents, :category_id
  end
end