Recently I switched to Postgres for my Rails database needs. Everything is good, but when running tests I get pages of
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index ... spewing into my output.
Controls which message levels are sent to the client. Valid values are
PANIC. Each level includes all the levels that follow it. The later the level, the fewer messages are sent. The default is
NOTICE. Note that
LOGhas a different rank here than in
That’s great for straight Postgres, but I don’t want to have some
connection.exec jimmied into my test environment. Fortunately the Rails docs were also in that same search result:
:min_messages– An optional client min messages that is used in a
SET client_min_messages TO <min_messages>call on the connection.
Using my newfound knowledge I was able to solve the issue by adding this to my
test: ... min_messages: WARNING