Showing posts with label test. Show all posts
Showing posts with label test. Show all posts

Saturday, 21 April 2007

Cloning test database to development

When developing Rails, I like to keep all of my data in the test fixtures.

In order to copy them to the development database, use this command:
rake db:fixtures:load # Load fixtures into the current environment's database. Load specific fixtures using FIXTURES=x,y

Note it will wipe out the existing data.

This was found using the handy "rake -T" command, which lists all rake Rails commands.