You can drop the database by:
This will delete the database.
You can create the database by:
You can create all the tables in the database by:
You can combine all three commands database by:
rake db:drop db:create db:migrate
You can accomplish it with just one rake task by:
This loads the schema.rb file into the database.
This rake task is dangerous. It is useful only in development environment only. Do not run in any other environment other than development.