solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
52 stars 124 forks source link

Add DB index to `reset_password_token` field #140

Closed spaghetticode closed 5 years ago

spaghetticode commented 5 years ago

Ref #83

This field should have an index in order to ensure uniqueness also at DB level and to speed up search performances.

The index is added only if it does not exist yet and if the field actually exists on the DB.

This index is present also in DB migrations generated by Devise gem.