Domanda

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?

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top