Rails: Generated tokens missing occasionally
- by Vincent Chan
We generate an unique token for each user and store it on database.
Everything is working fine in the local environment. However, after we upload the codes to the production server on Engine Yard, things become weird.
We tried to register an account right after the deploy. It is working fine and we can see the token in the db. But after that, when we register new accounts, we cannot see any tokens. We only have NULL in the db.
Not sure what caused this problem because we can't re-produce this in the local machine.
Thanks for your help.