rake db:purge code example Example: rails reset database rails db:reset // drop database and create/migrate all in one