You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to use activerecord aggregation methods(average, count ...).
I expected average result type is real number(float, double ...), but result type is BigDecimal.
How can I fix my code?
Here is my simplified code:
environments
jruby 9.0.0.0.pre1 (2.2.0p0) 2015-01-20 d537cab Java HotSpot(TM) Client VM 24.79
-b02 on 1.7.0_79-b15 +jit [Windows 7-x86]
I don't know how to use activerecord aggregation methods(average, count ...).
I expected average result type is real number(float, double ...), but result type is BigDecimal.
How can I fix my code?
Here is my simplified code:
environments
-b02 on 1.7.0_79-b15 +jit [Windows 7-x86]
table name: data
app/model/xxx_data.rb
Test
$ rails c
The text was updated successfully, but these errors were encountered: