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

Check timestamp columns (created_at, updated_at) are NOT NULL #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdufresne
Copy link
Contributor

Once the timestamps columns are established on a table, they might as well be NOT NULL to enforce their existence. All ActiveRecord operations set these values so they will always exist under normal usage.

Fixes #184

@jdufresne jdufresne force-pushed the timestamps-not-null branch 2 times, most recently from b44c5c6 to b6a657f Compare September 2, 2024 14:25
Copy link
Owner

@gregnavis gregnavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution, @jdufresne. I appreciate the effort you put into creating a PR.

I left one small comment that will hopefully improve DX.

@gregnavis gregnavis added new feature Pull requests that introduce a new feature waiting Waiting for updates from contributors labels Sep 3, 2024
Once the timestamps columns are established on a table, they might as
well be NOT NULL to enforce their existence. All ActiveRecord operations
set these values so they will always exist under normal usage.

Fixes gregnavis#184
@gregnavis gregnavis removed the waiting Waiting for updates from contributors label Sep 5, 2024
Copy link
Owner

@gregnavis gregnavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, @jdufresne.

@fatkodima, could you resolve the outstanding conversations if your concerns were addressed?

@fatkodima
Copy link
Contributor

Lgtm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Pull requests that introduce a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Idea: timestamps (created_at, updated_at) should be NOT NULL
3 participants