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

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