This seems like a problem with PostgreSQL. ( Rails 3 DISTINCT QUERY )
To solve this problem, you can use select instead:
Collection.select([:name, :created_at]).order('created_at ASC').uniq.select(:name)
Or you could have Ruby get the names uniquely, not SQL:
Collection.order('created_at ASC').pluck(:name).uniq
source share