When I was doing personal development, I got confused, so I decided to delete the application once. I would like to describe what I found there.
This is the method before turning off the app.
rails db:drop
You can now erase it. I also did this. But I couldn't do it well, so I tried another method.
I use sequel pro to manage my database, so I use sequel pro to erase it.
cd
Return to your home directory once
mysql -u root
Get into the sequel pro
drop database application name;
You can delete the database by writing. But for some reason only the development file was gone next,
drop database application name_development;
drop database application name_test;
I was able to successfully clear the database by typing
Recommended Posts