Tag Archives: yaml

Rake DB Everything, Dump, Destroy, Create, Load

I’m a big fan of the yaml_db plugin. But I don’t like running rake db:data:load, only to find that my db columns mismatch my model attributes, thus aborting the data import task. To quickly add/remove columns/attributes from a model and rebuild the database with previous db info, I wrote this simple rake task. It [...]
Posted in Ruby on Rails | Also tagged , , , | Leave a comment

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
Posted in Ruby on Rails | Also tagged , , | 2 Comments