rails/rails — pull request #14631 by laurocaetano (2014-04-07 14:33:33+00:00)
Title: Ignore order when doing count.

This is necessary because Postgresql doesn't play nice with ORDER BY and
no GROUP BY.

Fixes #14621.