Archived
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:
@@ -0,0 +1,5 @@
|
|||||||
|
class RemoveIndexEmailFromRegisterTokens < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
remove_index :register_tokens, :email
|
||||||
|
end
|
||||||
|
end
|
||||||
+1
-2
@@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20150825232749) do
|
ActiveRecord::Schema.define(version: 20160926220738) do
|
||||||
|
|
||||||
create_table "blogposts", force: :cascade do |t|
|
create_table "blogposts", force: :cascade do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
@@ -82,7 +82,6 @@ ActiveRecord::Schema.define(version: 20150825232749) do
|
|||||||
t.string "email", null: false
|
t.string "email", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "register_tokens", ["email"], name: "index_register_tokens_on_email", unique: true, using: :btree
|
|
||||||
add_index "register_tokens", ["uuid"], name: "index_register_tokens_on_uuid", unique: true, using: :btree
|
add_index "register_tokens", ["uuid"], name: "index_register_tokens_on_uuid", unique: true, using: :btree
|
||||||
|
|
||||||
create_table "roles", force: :cascade do |t|
|
create_table "roles", force: :cascade do |t|
|
||||||
|
|||||||
Reference in New Issue
Block a user