summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017214308_add_missing_indexes_to_news.rb
blob: 808eb629473d5311073382e16800f829bbf42c62 (plain)
1
2
3
4
5
6
7
8
9
class AddMissingIndexesToNews < ActiveRecord::Migration
  def self.up
    add_index :news, :author_id
  end

  def self.down
    remove_index :news, :author_id
  end
end