Created
July 14, 2014 06:07
-
-
Save maxy/0fdd74a9f6c27c14cda0 to your computer and use it in GitHub Desktop.
Set PG::PQERRORS_VERBOSE on pg connection instance for ActiveRecord
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
module ActiveRecord | |
module ConnectionAdapters | |
alias_method :base_configure_connection, :configure_connection | |
def configure_connection | |
valiables = base_configure_connection | |
@connection.set_error_verbosity(PG::PQERRORS_VERBOSE) | |
valiables | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment