1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Ryuta Kamizono e450a4a497 Fix average on decimal and enum attributes
Follow up to #40351 and #41418.

This fixes `average` on decimal and enum (on integer in general)
attributes to not do `type.deserialize`.

The precision and the scale on the column might be lower than the
calculated result.

And also, mapping the calculated result to enum label is quite
meaningless, the mapping result is almost nil.
2021-02-13 15:07:48 +09:00
..
active_record/connection_adapters
activejob Merge pull request #41093 from gwincr11/action-job-transactions 2021-02-01 19:11:26 -05:00
assets Replace test Man with Human 2020-08-14 11:37:09 -04:00
cases Fix average on decimal and enum attributes 2021-02-13 15:07:48 +09:00
fixtures Avoid stack level too deep in predicate builder 2021-02-11 11:32:20 -05:00
migrations Show a warning when running no migration using SCOPE 2021-01-26 15:05:35 +01:00
models Merge pull request #41394 from afrase/recursive-association-fix 2021-02-11 18:32:52 -05:00
schema Merge pull request #41394 from afrase/recursive-association-fix 2021-02-11 18:32:52 -05:00
support Implement granular role and shard swapping 2020-10-28 15:11:35 -04:00
config.example.yml Make we always type cast TimeWithZone objects before passing to mysql2 2021-02-11 22:45:14 +00:00
config.rb