redmine/db/migrate/20091017214308_add_missing_indexes_to_news.rb

10 líneas
170 B
Ruby
Original Vista normal Histórico

class AddMissingIndexesToNews < ActiveRecord::Migration
def self.up
add_index :news, :author_id
end
def self.down
remove_index :news, :author_id
end
end