Skip to content

Commit

Permalink
Readme.md: describe new table option timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Konchin committed Oct 14, 2019
1 parent e202bc9 commit 073d72a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ won't change its hash key, which it expects will be `user_id`. If this
table doesn't exist yet, however, Dynamoid will create it with these
options.

It's possible to override a global option `Dynamoid::Config.timestamps`
on a table level:

```ruby
table timestamps: false
```

This option controls generation of timestamp fields
`created_at`/`updated_at`.

### Fields

You'll have to define all the fields on the model and the data type of
Expand Down

0 comments on commit 073d72a

Please sign in to comment.