rails
rails copied to clipboard
Support PostgreSQL DISTINCT ON
Summary
This PR adds an interface for ActiveRecord relations to use (already implemented in arel) DISTINCT ON feature.
fixes https://github.com/rails/rails/issues/17706. Similar issue exists with tables which have point
data type column.