例如,我想运行如下查询
people = Person.select("GROUP_CONCAT(`first` SEPARATOR ', ') as names") \
.where(last: "smith").group(:age).order(:age)
# which basically gives me something like
# SELECT GROUP_CONCAT(`first` SEPARATOR ', ') as names ...
#####################
# but when I add pluck
people.pluck(:names)
# it does
# SELECT names ...
# and gives me an Unknown column error
如何使 rails/activerecord 处理选择查询的结果而不是覆盖它?