Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Version schema's timestamps type configurable #108

Merged
merged 6 commits into from
Oct 1, 2020

Conversation

szaboat
Copy link
Contributor

@szaboat szaboat commented Sep 24, 2020

Add support for different timestamp types for the Version schema.

Currently only the default naive_datetime can be used. In order to use utc_datetime or utc_datetime_usec it should be specified as a type option.

This PR adds a configuration field which for this purpose, namely :paper_trail, :timestamps_type.

@szaboat szaboat changed the title Make Version schema timestamps type configurable Make Version schema's timestamps type configurable Sep 24, 2020
lib/version.ex Outdated Show resolved Hide resolved
@izelnakri izelnakri merged commit ac3740a into izelnakri:master Oct 1, 2020
paranojik pushed a commit to paranojik/paper_trail that referenced this pull request Nov 24, 2020
* Make Version schema timestamps type configurable

* Update README.md

* Add timestamps_type to generated migration

* Use utc_datetime as a default value for timestamps
mayel pushed a commit to bonfire-networks/paper_trail that referenced this pull request Jun 26, 2023
* Make Version schema timestamps type configurable

* Update README.md

* Add timestamps_type to generated migration

* Use utc_datetime as a default value for timestamps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants