Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated documentation with to_sql options

  • Loading branch information...
commit 190301647aceefdf81438f4dfba9af055aa7c38c 1 parent 036afdc
@dsabanin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 README
View
8 README
@@ -1 +1,9 @@
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)
Please sign in to comment.
Something went wrong with that request. Please try again.