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.
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.Definitely, it's a good practice!