jeremyevans/sequel — comment on commit 743bfb1059a7568696a971d1a07021364e5d6d0d
File:  line 0
By jeremyevans:

DISTINCT ON is a PostgreSQL extension which has different semantics than regular DISTINCT. You probably just want:

DB[:tracks].order(:album).select(:album).distinct