DEV Community

Discussion on: Magic Links with Ruby On Rails and Devise

Collapse
 
caioertai profile image
Caio Andrade

Hey, thank you for the article. I was wondering whether to use a gem or just build from scratch when I stumbled into your article. I'm tweaking here and there (using UUID instead of the default bigint and using it as the token itself) but mostly it's the same flow.

But, talking about your flow, I'd recommend you adding an index to your emails_links.token column since it's going to be searched so often.

Collapse
 
matiascarpintini profile image
Matias Carpintini

Definitely, it's a good practice!