Merge pull request #71 from subelsky/master

Add a note about silencing postgres truncation warnings
This commit is contained in:
Ben Mabey 2011-08-20 09:40:40 -07:00
commit 7f477031e9

View file

@ -99,6 +99,12 @@ In rare cases DatabaseCleaner will encounter errors that it will log. By defaul
DatabaseCleaner.logger = Rails.logger
</pre>
If you are using Postgres and have foreign key constraints, the truncation strategy will cause a lot of extra noise to appear on STDERR (in
the form of "NOTICE truncate cascades" messages). To silence these warnings set the following log level in your postgresql.conf file:
<pre>
client_min_messages = warning
</pre>
h2. How to use with multiple ORM's