I considered that but I'd rather err on the side of doing something that will work regardless of database provider. The ActiveRecord model used in this migration is defined *in* this migration so it doesn't have an external dependency.

Also, using the actual code from clearance to generate the token means if we ever update how that token is generated, the migration is updated as well.