forked from dsabanin/models-to-sql-rails-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Plugin to convert rails models into proper SQL, with all the associations getting dumped also. Using this you can for example fetch object graphs from production system DB and move them to your local development setup.
gsusmonzon/models-to-sql-rails-plugin
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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) Changelog ----------------- 10/08/2011 - gsusmonzon . changed 'harvest' method to work on Rails 3
About
Plugin to convert rails models into proper SQL, with all the associations getting dumped also. Using this you can for example fetch object graphs from production system DB and move them to your local development setup.
Resources
Stars
Watchers
Forks
Releases
No releases published
Languages
- Ruby 100.0%