Skip to content

Commit 178f962

Browse files
committed
Readme.md: Add description of store_attribute_with_nil_value config option
1 parent f6e56ff commit 178f962

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,9 @@ Listed below are all configuration options.
813813
* `sync_retry_max_times` - when Dynamoid creates or deletes table synchronously it checks for completion specified times. Default is 60 (times). It's a bit over 2 minutes by default
814814
* `sync_retry_wait_seconds` - time to wait between retries. Default is 2 (seconds)
815815
* `convert_big_decimal` - if `true` then Dynamoid converts numbers stored in `Hash` in `raw` field to float. Default is `false`
816+
* `store_attribute_with_nil_value` - if `true` Dynamoid keeps attribute
817+
with `nil` value in a document. Otherwise Dynamoid removes it while saving
818+
a document. Default is `nil` which equals behaviour with `false` value.
816819
* `models_dir` - `dynamoid:create_tables` rake task loads DynamoDb models from this directory. Default is `./app/models`.
817820
* `application_timezone` - Dynamoid converts all `datetime` fields to specified time zone when loads data from the storage.
818821
Acceptable values - `:utc`, `:local` (to use system time zone) and time zone name e.g. `Eastern Time (US & Canada)`. Default is `utc`

0 commit comments

Comments
 (0)