;]
[askyou.git] / db / migrate / 20091017214336_add_missing_indexes_to_users.rb
blobc5a5095875eeae617d0639234656bef5ec296ce1
1 class AddMissingIndexesToUsers < ActiveRecord::Migration
2   def self.up
3     add_index :users, [:id, :type]
4     add_index :users, :auth_source_id
5   end
7   def self.down
8     remove_index :users, :column => [:id, :type]
9     remove_index :users, :auth_source_id
10   end
11 end