remove index 'email' from register_tokens

only records with the same UUID are deleted before INSERTing new ones
meaning a player could prevent another one from using a certain address
when emails are unique.

There's no good reason to force uniqueness on emails in this table
This commit is contained in:
jomo
2016-09-27 00:15:01 +02:00
parent b057cb5913
commit cce749deef
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class RemoveIndexEmailFromRegisterTokens < ActiveRecord::Migration
def change
remove_index :register_tokens, :email
end
end