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. |
||
---|---|---|
.. | ||
batches | ||
predicate_builder | ||
batches.rb | ||
calculations.rb | ||
delegation.rb | ||
finder_methods.rb | ||
from_clause.rb | ||
merger.rb | ||
predicate_builder.rb | ||
query_attribute.rb | ||
query_methods.rb | ||
record_fetch_warning.rb | ||
spawn_methods.rb | ||
where_clause.rb |