Skip to content

Commit

Permalink
Merge pull request #835 from joshuacronemeyer/765_update_readme
Browse files Browse the repository at this point in the history
update readme for validates_uniqueness option
  • Loading branch information
jkowens committed Apr 11, 2024
2 parents e4e06bf + ba5e56d commit 9e60ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -265,7 +265,7 @@ Book.import books, recursive: true
Key | Options | Default | Description
------------------------- | --------------------- | ------------------ | -----------
:validate | `true`/`false` | `true` | Whether or not to run `ActiveRecord` validations (uniqueness skipped). This option will always be true when using `import!`.
:validate_uniqueness | `true`/`false` | `false` | Whether or not to run uniqueness validations, has potential pitfalls, use with caution (requires `>= v0.27.0`).
:validate_uniqueness | `true`/`false` | `false` | Whether or not to run ActiveRecord uniqueness validations. Beware this will incur an sql query per-record (N+1 queries). (requires `>= v0.27.0`).
:validate_with_context | `Symbol` |`:create`/`:update` | Allows passing an ActiveModel validation context for each model. Default is `:create` for new records and `:update` for existing ones.
:track_validation_failures| `true`/`false` | `false` | When this is set to true, `failed_instances` will be an array of arrays, with each inner array having the form `[:index_in_dataset, :object_with_errors]`
:on_duplicate_key_ignore | `true`/`false` | `false` | Allows skipping records with duplicate keys. See [here](#duplicate-key-ignore) for more details.
Expand Down

0 comments on commit 9e60ef1

Please sign in to comment.