Mercurial > hg > soundsoftware-site
view db/migrate/.svn/text-base/20091017214336_add_missing_indexes_to_users.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 AddMissingIndexesToUsers < ActiveRecord::Migration def self.up add_index :users, [:id, :type] add_index :users, :auth_source_id end def self.down remove_index :users, :column => [:id, :type] remove_index :users, :auth_source_id end end