Once I have devise installed, how do I add (and remove) modules easily? - Rails 3 -


i added :confirmable getting error:

nameerror in devise::registrationscontroller#create  undefined local variable or method `confirmed_at' #<user:0x000001025db288> 

i realized after added it, didn't generate migration.

how new migration alter current schema on existing devise install?

thanks.

update: here's devise wiki page on how change existing table 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


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -