I already have a working solution, but I would really like to know why this doesn\'t work:
ratings = Model.select(:rating).uniq ratings.each { |r| puts r.rat
Another way to collect uniq columns with sql:
Model.group(:rating).pluck(:rating)