How to quickly re-seed your Rails database

Aug 20, 2020
rails db:seed:replant

Sometimes, it’s useful to wipe the database of all existing records and rerun all our seeds in db/seeds.rb .

The rails db:seed:replant does exactly this. It doesn’t actually drop our database and rerun our migrations. It only clears / truncates the database.