Is there an easy way to dump / write the queries performed by ActiveRecord into a file?
I know that they are in the log, but without parsing that? How can I get the queries?
Is there an easy way to dump / write the queries performed by ActiveRecord
Share
Check out this answer.
How do I get the last SQL query performed by ActiveRecord in Ruby on Rails?
You can easily update the method in order to save the queries into a file.