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 User
This deletes the model and the routes.2:
rails d devise:install
, This destroysdevise.rb
anddevise.en.yml
files.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.