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 :precision
option for time type columns
#18886
Allow :precision
option for time type columns
#18886
Conversation
ec84082
to
8c96db9
Compare
when nil, 0..6; super | ||
else | ||
native_type = native_database_types[type.to_sym][:name] | ||
raise(ActiveRecordError, "No #{native_type} type has precision of #{precision}. The allowed range of precision is from 0 to 6") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to move this behavior to the abstract adapter, since it looks to be the same?
I just pushed up some pretty major code changes, this PR might be affected pretty heavily by it. |
19ff882
to
2ddeee1
Compare
2ddeee1
to
1502cae
Compare
Thank you for your review. |
…_column Allow `:precision` option for time type columns
This breaks the test suite when using the mysql adapter on MySQL 5.6 (Travis uses 5.5). I've reverted if you'd like to take another swing at this. |
@rafaelfranca This change has been cherry-picked for was needed for #18914. Is it better to be split as another PR? |
Right. There is no need. On Thu Feb 19 2015 at 10:17:52 AM Ryuta Kamizono notifications@github.com
|
No description provided.