mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #71 from subelsky/master
Add a note about silencing postgres truncation warnings
This commit is contained in:
commit
7f477031e9
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue