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

PostgreSQL timestamps should always be datetimes #15156

Merged
merged 1 commit into from May 18, 2014

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented May 17, 2014

The current behavior is that they are treated as datetime normally,
but if they are part of an array, they are treated as timestamp. The
only place that seems to be impacted by this is schema dumping, which
shouldn't matter since t.datetime and t.timestamp are equivalent in
the PostgreSQL adapter, anyway.

The current behavior is that they are treated as `datetime` normally,
but if they are part of an array, they are treated as `timestamp`. The
only place that seems to be impacted by this is schema dumping, which
shouldn't matter since `t.datetime` and `t.timestamp` are equivalent in
the `PostgreSQL` adapter, anyway.
@senny senny self-assigned this May 18, 2014
@senny
Copy link
Member

senny commented May 18, 2014

@sgrif 👍 couldn't find any further distinction between Timestamp and DateTime.

senny added a commit that referenced this pull request May 18, 2014
PostgreSQL timestamps should always be datetimes
@senny senny merged commit d29074a into rails:master May 18, 2014
@sgrif sgrif deleted the sg-postgres-timestamps branch March 14, 2018 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants