method

columns_for_distinct

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: SchemaStatements
columns_for_distinct(columns, orders) public

PostgreSQL requires the ORDER BY columns in the select list for distinct queries, and requires that the ORDER BY include the distinct column.

Show source
Register or log in to add new notes.