1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
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 Fix average on decimal and enum attributes 2021-02-13 15:07:48 +09:00
arel Properly support reverse_order on relations with nulls_first or nulls_last calls 2020-09-08 11:20:46 -04:00
rails/generators Set ApplicationRecord to primary_abstract_class 2021-02-05 17:02:08 -05:00
active_record.rb Allow Adapter#select_all to be performed asynchronously from a background thread pool 2021-02-08 19:17:52 +01:00
arel.rb