Plugin: Manage Fixtures

June 9th, 2006

Creating fixtures is always really annoying for me. I do it out of necessity but definitely not out of love. Chris McGrath and Nathaniel Brown have created a plugin to help with this called Manage Fixtures. You can create fixtures for each table with:

rake db:fixtures:export_all

or just for certain tables with…

rake db:fixtures:export_for_tables TABLES=foo,bar

or based on a query like so…

rake db:fixtures:export_using_query SQL="select * from foo where id='bar'" FIXTURE_NAME=foo

Looks pretty cool.

Leave a Reply


(textile enabled)