I just added :confirmable but am now getting an error:
NameError in Devise::RegistrationsController#create
undefined local variable or method `confirmed_at' for #<User:0x000001025db288>
I realized that after I added it, I didn’t do anything that would generate a migration.
How do I get a new migration to alter the current schema on an existing devise install?
Thanks.
Update: Here’s Devise wiki page on how to change existing table to suit Devise needs:
For Devise below 2.0
https://github.com/plataformatec/devise/wiki/How-To:-change-an-already-existing-table-to-add-devise-required-columns
For Devise after 2.0
https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style