Generate a unique token with Active Record.