I'm writing this post for two reasons:
- For some reason, I couldn't find a lot of information on ActiveRecord and
SELECT DISTINCT()
. - I'm hoping some Ruby / ActiveRecord guru will stumble across this and provide a better solution.
Recently, I was working on a project written in Ruby with ActiveRecord that …