Manage Fixtures

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.

[%] rake db:fixtures:export_all RAILS_ENV=development
[%] rake db:fixtures:load

=== USAGE

Create YAML test fixtures from data in an existing database. Defaults to development database. Set RAILS_ENV to override. rake db:fixtures:export_all

Create YAML test fixtures for a specific table(s) from data in an existing database. Defaults to development database. Set RAILS_ENV to override. rake db:fixtures:export_for_tables TABLES=foo,bar

Create YAML text fixtures based on a specific SQL query rake db:fixtures:export_using_query SQL=”select * from foo where id=’bar’” FIXTURE_NAME=foo

=== AUTHORS

Chris McGrath Nathaniel Brown – nshb@inimit.com

=== BUGS

Please report any bugs or feature enhancements to http://dev.toolbocks.com

Tags

You need to Login to tag this item.