EppO/rolify — pull request #52 by stigi (2012-04-06 19:22:45+00:00)
Title: Adding indexes to generator for mongoid

I found that the active record generator generates migrations with indexes like that:

add_index(:roles, :name)
add_index(:roles, [ :name, :resource_type, :resource_id ])
add_index(:users_roles, [ :user_id, :role_id ])

Those are not added when using Mongoid, so I added them, at least the first two. I wasn't sure how to add the last one. Maybe someone can jump in?