I think that various information is saved in the process of creating an application. In such a case, this command is used when you want to bring the table to a fresh state.
Make sure the current directory is the application and in the terminal
rails db:reset
All the stored data will be gone, but the table will not be gone.
Recommended Posts