Ruby on Rails 8 · Database

Drop and recreate the database

Drop, recreate, load the schema and seed.

bin/rails db:reset

Caution: Deletes all data in the database for the current environment.

Official Ruby on Rails 8 documentation

More database commands

All database commands · Ruby on Rails 8 cheatsheet

Was this page helpful?