This plugin is a super lightweight tool used to export data into the
test/fixtures directory.
So if you want to export all your data from your production server into
your
development environment, this will simplify the process without having
to
load up your database manager.
Nathaniel, is my interpretation right that your data dumper just exports
tables ? (while other approaches, for example the one of topfunky
exported
objects and had trouble with habtms relations).
It’s just a slightly more advanced version of the code in Rails
Recipes for this task. It allows you to specify specific tables or
use a sql query to specify the data.
This plugin is actually the brainchild of Chris McGrath. I did some
tweaking
to add namespace support, but the seed was sewn by Chris and I had the
privlege to package it all up and throw it on my open source repository
(dev.toolbocks.com).
The topfunky script I had checked out was indeed exporting ruby objects,
which I had some errors with when I tried it. I did some hacking and
couldn’t get to the bottom of it.
The Export Fixtures plugin is completely lightweight, and doesn’t add
anything to ActiveRecord class as the ar_fixtures plugin does. It is
simply
a rake task, which exports the data in the database into a flat YAML
file,
not as ruby objects.
Nathaniel, is my interpretation right that your data dumper just exports
tables ? (while other approaches, for example the one of topfunky exported
objects and had trouble with habtms relations).