I have installed Devise and now want to remove it, including all the files it has generated. How do I do that?
I have installed Devise and now want to remove it, including all the files it has generated. How do I do that?
This worked for me!
1:
rails d devise UserThis deletes the model and the routes.2:
rails d devise:install, This destroysdevise.rbanddevise.en.ymlfiles.3: create a migration eg:
rails g migration drop_user_table. I useddrop_table :users , force: :cascade,force: :cascade; takes care ofPG::DependentObjectsStillExist: ERROR:
that occurs if other tables depend on the user table.