문제

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?

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top