I ran into this problem. This change has been made to this commit . Type string
User.count
now throws an ActiveRecord::StatementInvalid error, because it generates SELECT COUNT() FROM users in Postgres. Starting with this commit, the fix is ββto upgrade the code to
User.count(:all)
This commit restores the functionality that existed before using :all as a column to pass to AREL, invoking a valid SQL query SELECT COUNT(*) FROM users .
My Gemfile originally had the following (as mentioned in the comments)
gem "rails", github: "rails/rails", branch: "4-0-stable"
but I needed to run bundle update rails to pull out the new commit mentioned above.
deefour
source share