Manage Fixtures plugin

Plugin details

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.

Websitehttp://dev.toolbocks.com Repositoryhttp://svn.toolbocks.com/plugins/manage_fixtures/ Author Chris McGrath, Nathaniel Brown Tags Fixtures LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.toolbocks.com/plugins/manage_fixtures/

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

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: maxim_kulkin, 11 months ago