AR Fixtures plugin

Plugin details

This library makes it easy to save ActiveRecord objects to reloadable files or fixtures. ActiveRecord is required.

Websitehttp://nubyonrails.com/articles/2005/12/27/dump-or-slurp-yaml-reference-data Repositoryhttp://topfunky.net/svn/plugins/ar_fixtures Author Geoffrey Grosenbach Tags ActiveRecord, fixture LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://topfunky.net/svn/plugins/ar_fixtures

Use it in code, or use the built-in ‘runner’ command.

# Dump user table to db/users.yml
./script/runner "User.dump_to_file" 
# Or
./script/runner "User.to_fixture" 



# Read it back into the database
./script/runner "User.load_from_file" 

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago