Execute this in the Rails console and then all SQL queries from ActiveRecord will be shown:
ActiveRecord::Base.logger = Logger.new(STDOUT)
Execute this in the Rails console and then all SQL queries from ActiveRecord will be shown:
ActiveRecord::Base.logger = Logger.new(STDOUT)