On Fri, Apr 13, 2018 at 10:13 PM, nyt1972 <
nyt...@gmail.com> wrote:
> I want to ask Is there any tool to convet ActiveRecord 2.3.5 statement to
> sql?
If it's a one-time or occasional thing, just execute the statement
and grab the query SQL from your logs.
There are also `to_sql()` methods in ActiveRecord::Relation and
ActiveRecord::ConnectionAdapters::DatabaseStatements which
(hint) you could find by searching the docs.
HTH,
--
Hassan Schroeder ------------------------
hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote