Rails Migrations Tricks [Guide + Code] — Cheatsheet included | by J.Charles Gasche | Forest Admin | Medium

PHOTO EMBED

Thu Aug 13 2020 18:17:17 GMT+0000 (Coordinated Universal Time)

Saved by @ludaley #rubyonrails #ruby

$ rake db:reset db:migrate
content_copyCOPY

8- Purge, recreate, drop a Ruby on Rails database To fully delete and rebuild our database, we can reset the database and reload the current schema.

https://medium.com/forest-admin/rails-migrations-tricks-guide-code-cheatsheet-included-dca935354f22