Skip to content

Instantly share code, notes, and snippets.

@samgranieri
Created March 27, 2009 22:51
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 samgranieri/86953 to your computer and use it in GitHub Desktop.
Save samgranieri/86953 to your computer and use it in GitHub Desktop.
module ActiveRecord::ConnectionAdapters
class PostgreSQLAdapter < AbstractAdapter
def client_min_messages=(level)
@logger.silence do
execute("SET client_min_messages TO '#{level}'")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment