Migrate Fresh with Seed (Dev Only)

Drop all tables, re-run every migration, then seed. Destroys all data, so development only.

Drops all tables and re-runs all migrations from scratch. --seed re-runs seeders after migration. Destructive - never use on production databases.

When you need this: During development to reset to a clean database state after schema changes.

Command


        
5 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.