mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e450a4a497
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. |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |