Skip to content

Commit

Permalink
Merge pull request #74 from seuros/patch-1
Browse files Browse the repository at this point in the history
update readme with conditions [ci skip]
  • Loading branch information
rroblak committed Apr 14, 2015
2 parents ae0af6b + a23c27e commit 5438b3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,6 @@ Options are common to both the Rake task and the console, except where noted.

`limit`: Dump no more than this amount of data. Default: no limit. Rake task only. In the console just pass in an ActiveRecord::Relation with the appropriate limit (e.g. `SeedDump.dump(User.limit(5))`).

`conditions`: Dump only specific records. In the console just pass in an ActiveRecord::Relation with the appropriate conditions (e.g. `SeedDump.dump(User.where(state: :active))`).

`model[s]`: Restrict the dump to the specified comma-separated list of models. Default: all models. If you are using a Rails engine you can dump a specific model by passing "EngineName::ModelName". Rake task only. Example: `rake db:seed:dump MODELS="User, Position, Function"`

0 comments on commit 5438b3b

Please sign in to comment.