Created
June 2, 2016 15:19
-
-
Save seanhandley/07eb42a22919119909ba0f56a830e5a4 to your computer and use it in GitHub Desktop.
Get SQL debug info in production Rails console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.configuration.log_level = :info | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
# run your code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment