diff options
Diffstat (limited to 'db/migrate/20091017214336_add_missing_indexes_to_users.rb')
-rw-r--r-- | db/migrate/20091017214336_add_missing_indexes_to_users.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20091017214336_add_missing_indexes_to_users.rb b/db/migrate/20091017214336_add_missing_indexes_to_users.rb new file mode 100644 index 000000000..c5a509587 --- /dev/null +++ b/db/migrate/20091017214336_add_missing_indexes_to_users.rb @@ -0,0 +1,11 @@ +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 |