README.rdoc in seed_dump-0.3.4 vs README.rdoc in seed_dump-0.4.0
- old
+ new
@@ -12,11 +12,11 @@
Dump all data directly to db/seeds.rb:
rake db:seed:dump
-Dump only data from the users and products table and dump a maximum amount of 10 records:
+Dump only data from the users and products table and dump a maximum amount of 2 records:
$ rake db:seed:dump MODELS=User,Product LIMIT=2
Result:
@@ -75,8 +75,20 @@
NO_DATA:
Don't dump any data from the db, instead generate empty Create options
WITH_ID:
Inlcude the +:id+ in the create options
+
+SKIP_CALLBACKS:
+ Deactivate callbacks while importing.
+
+PG_SCHEMA:
+ Postgres schema support
+
+WITHOUT_PROTECTION:
+ Skip protection for columns that are protected by default. (Automatically activated if such columns are present)
+
+MODEL_DIR:
+ Specify an alternative model dir
Copyright (c) 2010 Rob Halff, released under the MIT license