Skip to content

Commit

Permalink
ZennerIoT#14 Update README for precision in timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
neodevelop committed Mar 20, 2021
1 parent 63892b3 commit 425f941
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ instead of descending into the struct to find the individual part that changed:
{:changed, %{day: {:changed, {:primitive_change, 1, 18}}}}
```

### Precision in the timestamp

When you are generating the tables of *ex_audit*, in some cases, the precision in the fields are in `:millisecond`, in such case you can change the precision of the field.

```elixir
config :ex_audit,
# ...
precision: :millisecond, # :microsecond is default
# ...
```

### Version Schema and Migration

You need to copy the migration and the schema module for the versions table. This allows you to add custom fields
Expand Down

0 comments on commit 425f941

Please sign in to comment.