I'm trying to discover how Ruby on Rails generates the authentication_token field for users in a database. Is it random? Or is there some specific way of generating it that must be used?
The reason I ask is because I'm trying to add many users to a RoR app (GitLab) by creating the SQL queries directly, but I'm not sure what to put in that field. I do know that the length is fixed, and that the strings appear to be random.
Can I just put random strings in there? Or must they be generated specifically somehow?
For example, here's a row I'm trying to create manually: http://vpaste.net/IzwQH
You can see there a random 20 char string just after the name Alia Avallone. That's the "authentication_token" created by Ruby on Rails somehow. I'm wondering if it suffices to just put a random 20 byte/char length string there or if I have to create it specifically somehow. Do you know?