@sgrif Is there a preferred method for using aggregate functions that aren't supported by arel in ActiveRecord? I'm currently doing relation.pluck("stddev_pop(...)").first, but I was curious if there was a better way 
-
-
Hmm, I thought that's what I would use too, but when trying relation.calculate(:stddev_pop, :field), I get undefined method `stddev_pop' for #<Arel::Attributes::Attribute:...>. Is there a way to calculate on non-arel backed ag funcs?
-
Also, thank you so much for the help! I really appreciate your time and advice
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.