سؤال

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