Posted By

noah on 10/20/08


Tagged

database db test ruby version rake install migrations teardown uninstall


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

miyazima
webstic


Use Rake to tear down, build and prepare a DB for testing with AutoTest/ZenTest


 / Published in: Rails
 

Run the following commands in the root of your Rails project.

  1. rake db:migrate VERSION=0
  2. rake db:migrate
  3. rake db:test:prepare
  4. rake db:test:clone
  5. autotest

Report this snippet  

You need to login to post a comment.