view db/migrate/.svn/text-base/20091017213113_add_missing_indexes_to_enumerations.rb.svn-base @ 444:b461f84ed41a feature_36

Publications: Routes for regular REST behaviour; Import view and controller action; New beahviour for new action.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Sat, 04 Jun 2011 18:08:01 +0100
parents 513646585e45
children
line wrap: on
line source
class AddMissingIndexesToEnumerations < ActiveRecord::Migration
  def self.up
    add_index :enumerations, [:id, :type]
  end

  def self.down
    remove_index :enumerations, :column => [:id, :type]
  end
end