Is there a rake command to wipe out the data in the database tables?
how do I create a db:seed script to pre-install data to my tables?
Is there a rake command to wipe out the data in the database tables?
how do I create a db:seed script to pre-install data to my tables?
I use rake db:reset
which drops and then recreates the database and includes your seeds.rb file.
http://en.wikibooks.org/wiki/Ruby_on_Rails/ActiveRecord/Migrations