This repository has been archived on 2024-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
redstoner.com/db/migrate/20160926220738_remove_index_email_from_register_tokens.rb
jomo cce749deef 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
2016-09-27 00:15:01 +02:00

5 lines
131 B
Ruby

class RemoveIndexEmailFromRegisterTokens < ActiveRecord::Migration
def change
remove_index :register_tokens, :email
end
end