views:

17

answers:

2

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?

A: 

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

Jack