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

Thoughts? Do Tell...


textile enabled, preview above, please be nice
use <pre><code class="ruby"></code></pre> for code blocks

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.