Skip to content

Add suggestions for date-related columns#364

Open
fatkodima wants to merge 1 commit intorubocop:masterfrom
fatkodima:date-columns
Open

Add suggestions for date-related columns#364
fatkodima wants to merge 1 commit intorubocop:masterfrom
fatkodima:date-columns

Conversation

@fatkodima
Copy link
Copy Markdown
Contributor

Comment thread README.adoc Outdated
Name `datetime` columns with `_at` suffixes.
Name `time` columns (referring to a time of day with no date) with `_time` suffixes.

This enforces consistency and it is easier to tell the type from name without referring to db schema.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
This enforces consistency and it is easier to tell the type from name without referring to db schema.
This enforces consistency and it is easier to tell the type from the name without referring to the database schema.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, applied.

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