Useful Rails commands

If the database need to go down to a version, then the following command will do it

rake db:migrate:down VERSION=20160512135519

The database can be run on heroku using the following command

heroku run rake db:migrate

The database can be created in rails using the following command:

rake db:create

The database can be dropped in rails using the following command:

rake db:drop

Comments