view .svn/pristine/95/95b8abf44c3c03e38cc65d6bbe29d78a6f95443c.svn-base @ 1212:1186340b4ad4 redmine-2.2-integration

Renamed a named_scope (deprecated) to scope.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 07 Mar 2013 13:05:22 +0000
parents cbb26bc654de
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