Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top