If u have added devise_invitable on a model say User
then to destroy u should do
$ rails destroy devise_invitable User
and then
$ rails destroy devise_invitable:install
Pergunta
I tried devise_invitable and added this to an existing MODEL
rails generate devise_invitable MODEL
It added some files, changes to db [migration files],.. I don't need it anymore. so i thought to remove it. In rails there is
rails destroy ...
to remove model or controller. How can i revert back the changes made by the rails generate devise_invitable?
Solução
If u have added devise_invitable on a model say User
then to destroy u should do
$ rails destroy devise_invitable User
and then
$ rails destroy devise_invitable:install