[Ruby on Rails] How to Initialize and Reset Database ~ rake db:reset and rake db:migrate:reset
I’ll introduce two methods for resetting the database (DB) in Ruby on Rails.
rake db:reset
Use this command.
The process flow for db:reset is:
rake db:migrate:reset
Use this command.
The process flow for db:migrate:reset is:
Personally, I often use rake db:migrate:reset because it completes all migrations as well.
That’s all from the Gemba, where I wanted to reset the database (DB) in Ruby on Rails.