Question

Just made a roll back on a migration that added columns for devise_invitable and deleted the migration. I am now receiving the following error when trying to login to my app.

 undefined local variable or method `invitation_token' for #<User:0$%$%$%@@@@@>

I cant seem to find invitation_token anywhere.

Was it helpful?

Solution

You will need to remove ':invitable' from the devise callback in your User model. Without the columns, the gem will not work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top