Is there a way to get the number of rows affected as a result of an SQL operation with ActiveRecord::Base.connection.execute?
I found this answer for MySQL adapters, but it does not work with Postgres.
Alternatively, if there is a way to get an SQL text response (for example, βUPDATE 126β), this will also work.
Yarin source
share