Fix migration written to fix synced users

The earlier version was incompatible with mongoid, because it expects keys in a `delete_all` condition to be symbols or strings.