I have a dev Ruby on Rails database full of data. I want to delete everything and rebuild the database. I\'m thinking of using something like:
rake db:recrea
Depending on what you're wanting, you can use…
rake db:create
…to build the database from scratch from config/database.yml, or…
config/database.yml
rake db:schema:load
…to build the database from scratch from your schema.rb file.
schema.rb