Notes posted by lawitschka
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/3ad0457151d7c61225fdae93a3cdef87?default=http://apidock.com/images/default_avatar_30.png&size=30)
0 thanks
No type cast to Float
In Rails 3 the returned value will be type cast to the column’s type and not Float. So when calculating average on a column the column’s type need to be float, the result will be truncated otherwise.