When called with NewsArticles.count_by :published_at, :group_by => "month"
ActiveRecord::StatementInvalid (PGError: ERROR: column "news_articles.published_at" must appear in the GROUP BY clause or be used in an aggregate function
It worked fine on my local MySQL 5.1 server