Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created June 2, 2016 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhandley/07eb42a22919119909ba0f56a830e5a4 to your computer and use it in GitHub Desktop.
Save seanhandley/07eb42a22919119909ba0f56a830e5a4 to your computer and use it in GitHub Desktop.
Get SQL debug info in production Rails console
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