You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: