After upgrading to rails 4 the executed SQL is no longer shown when I execute commands in the rails console on my server in production. How can I enable that again, without hurting the performance?
After upgrading to rails 4 the executed SQL is no longer shown when I execute commands in the rails console on my server in production. How can I enable that again, without hurting the performance?
ActiveRecord::Base.logger = Logger.new(STDOUT)
Execute it in rails console on your server, and then all the ActiveRecord generated SQL queries will be shown.