Manage Fixtures with Yaml DB Plugin for Rails

Get the plugin like so…

script/plugin install git://github.com/adamwiggins/yaml_db.git

This command will dump your data

rake db:data:dump

And load it back

rake db:data:load

Beautiful :) More info here

http://blog.heroku.com/archives/2007/11/23/yamldb_for_databaseindependent_data_dumps/

and

http://stackoverflow.com/questions/490507/best-way-to-export-a-database-table-to-a-yaml-file

  • http://foo.raflabs.com Rafael Magaña

    This plugin is amazing but I think it lacks of a command-line utility, installing the plugin to every application I need to dump data is something weird, here you can find my fork to this project which already have a command-line utility > http://github.com/rafmagana/yaml_db

  • admin

    looks awesome. i couldn’t get the gem to install the command line tool… is there a trick?