Skip to main content

auth_migration_template

Function auth_migration_template 

Source
pub fn auth_migration_template() -> String
Expand description

Migration template that adds auth fields to an existing users table.

Uses ALTER TABLE to add name, email (unique), password, and remember_token.