***Terribly outdated*** Plugin to convert Rails model graphs into proper SQL. Using this you can fetch object graph from production system DB and move them to your local development setup.
Ruby
Latest commit c8b6bb6 Apr 9, 2011 @dsabanin whitespace change
Failed to load latest commit information.
README Updated documentation with to_sql options Nov 11, 2010
dumper.rb whitespace change Apr 9, 2011

README

This plugin allows you to dump ActiveRecord models graphs back into SQL or Rails fixtures format.

After installation, each AR model has to_sql method that can take following options:

  :ignore_associations_for - do not dump associations with specified models. (default: empty)
  :ignore_models - do not dump specified models. Array of ruby Class objects is used. (default: empty)
  :ignore_tables - do not dump specified tables (default: empty)
  :debug - debugging mode (default: false)
  :add_deletes - generate SQL to delete records with the same ID from DB before generating insert statement (default: false)