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/active_record/relation
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
..
batches Return rows affected from batched update_all and delete_all 2020-10-03 18:27:26 +01:00
predicate_builder Fix where on polymorphic association with empty array 2021-01-09 13:33:57 +09:00
batches.rb Simplify apply_{start,finish}_limit 2020-07-25 09:38:00 +09:00
calculations.rb Fix average on decimal and enum attributes 2021-02-13 15:07:48 +09:00
delegation.rb Use arguments forwarding in the delegate code generation 2021-02-07 12:08:16 +09:00
finder_methods.rb Handle Relations with having clauses in #include? 2021-02-12 01:04:39 +01:00
from_clause.rb Merge pull request #38145 from sinsoku/avoid_assigning_the_same_value_to_join_values 2020-01-04 21:31:36 +09:00
merger.rb Relation methods are public 2020-10-02 21:36:35 +09:00
predicate_builder.rb Avoid stack level too deep in predicate builder 2021-02-11 11:32:20 -05:00
query_attribute.rb Don't allow where with invalid value matches to nil values 2019-02-18 16:57:10 +09:00
query_methods.rb Rails 6.2 is now Rails 7.0 2021-02-04 16:47:16 +00:00
record_fetch_warning.rb Move records and loaded ivar up to load 2019-12-10 14:15:11 -05:00
spawn_methods.rb Set the inverse record on find with multiple ids from has_many association 2020-11-05 23:26:56 +09:00
where_clause.rb Merge pull request #41319 from kamipo/fix_scoping_to_take_only_equality 2021-02-09 21:31:53 +09:00