method

distinct

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
distinct(columns, order_by) public

SELECT DISTINCT clause for a given set of columns and a given ORDER BY clause. Both PostgreSQL and Oracle overrides this for custom DISTINCT syntax.

  distinct("posts.id", "posts.created_at desc")
Show source
Register or log in to add new notes.