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

Allow for manually setting the CreatedAt field. #409

Merged
merged 1 commit into from
Jul 14, 2019

Conversation

burrows
Copy link
Contributor

@burrows burrows commented Jul 9, 2019

For testing purposes there are situations where I'd like to be able to specify the value of the CreatedAt field instead of setting it to the current time. This PR updates the touchCreatedAt method to only set the field if it has a zero value.

@burrows burrows requested a review from a team as a code owner July 9, 2019 21:24
@stanislas-m stanislas-m self-assigned this Jul 13, 2019
@stanislas-m stanislas-m merged commit 42586cb into gobuffalo:development Jul 14, 2019
@stanislas-m
Copy link
Member

Thanks!

@stanislas-m stanislas-m added this to the Next milestone Jul 21, 2019
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.

2 participants