Last active
May 28, 2019 15:45
-
-
Save MatiasFernandez/58a6199980f6d73b619762ee76a5a8f3 to your computer and use it in GitHub Desktop.
Show SQL logging in 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
ActiveRecord::Base.logger = Rails.logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment