Register now and start sharing your code snippets.
-->
How to backup ActiveRecord model data to YAML with ar_fixtures
Ruby posted 3 months ago by christian
First install the plugin:
1 script/plugin install http://github.com/mileszs/ar_fixtures/commits/master
Then dump data for all models with:
1 rake db:data:dump:all
There’s a task for loading the data into the database, see rake -T for more information.