Skip to content

Instantly share code, notes, and snippets.



Last active Dec 14, 2015
What would you like to do?
Disable SQL log in Rails Console (3.1 +)
#Turn logs off
old_logger = ActiveRecord::Base.logger
ActiveRecord::Base.logger = nil
#Turn logs on again
ActiveRecord::Base.logger = old_logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.