Added indexes.

This commit is contained in:
Martin Edenhofer 2015-06-17 00:52:51 +02:00
parent 876109258f
commit 58e5defe91

View file

@ -0,0 +1,12 @@
class AddBaseIndexes < ActiveRecord::Migration
def change
add_index :users, [:organization_id]
add_index :roles_users, [:user_id]
add_index :roles_users, [:role_id]
add_index :groups_users, [:user_id]
add_index :groups_users, [:group_id]
add_index :organizations_users, [:user_id]
add_index :organizations_users, [:organization_id]
end
end