Rails: Generated tokens missing occasionally

Posted by Vincent Chan on Stack Overflow See other posts from Stack Overflow or by Vincent Chan
Published on 2010-06-04T06:36:09Z Indexed on 2010/06/04 6:39 UTC
Read the original article Hit count: 308

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about ruby-on-rails