rails/rails — pull request #5168 by kennyj (2012-02-25 14:04:44+00:00)
Title: Remove NULLS FIRST/LAST.

When we use the postgresql adapter and construct `distinct select clause`, we have a problem with `NULLS first/last`.

closes #5152

This original issue was reported for 3-2-stable.