Delete and reset database in rails 3

Suppose I have a Ruby on Rails database . I want to delete everything and rebuild the database.

Please follow the following steps:

rake db:drop
rake db:create
rake db:migrate

 To reset and reload your current schema with all. Just follow

rake db:reset
rake db:migrate

Comments

Popular posts from this blog

Debug Nodejs inside docker container

Swap primary keys between two records in the same table in Postgres

How to add a bootstrap table with fixed header and scrollable body