Hi,
I want to run a raw SQL query as following:
ActiveRecord::Base.connection.execute(some_query);
Can I capture any errors that happen while executing the query? If yes, how?
Does execute
returns anything? It doesn't say in the documentation.
Cheers