view db/migrate/20091017214308_add_missing_indexes_to_news.rb @ 862:9e5828c6e55d bug_169

Close obsolete branch bug_169
author Chris Cannam
date Tue, 07 Jun 2011 13:31:44 +0100
parents 513646585e45
children
line wrap: on
line source
class AddMissingIndexesToNews < ActiveRecord::Migration
  def self.up
    add_index :news, :author_id
  end

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