June 09, 2006

Posted by John

Tagged plugins and rake

Older: Things Are A Changing

Newer: Parameter Driven Response-Type Determination

Plugin: Manage Fixtures

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.

0 Comments

Comments

Sorry, comments are closed for this article to ease the burden of pruning spam.

About

Authored by John Nunemaker (Noo-neh-maker), a programmer who has fallen deeply in love with Ruby. Learn More.

Projects

Flipper
Release your software more often with fewer problems.
Flip your features.