From ede49b033ac3c75cd3686ea9dca6155d8ed2db44 Mon Sep 17 00:00:00 2001 From: Ben Standefer Date: Fri, 5 Jun 2015 14:23:49 -0700 Subject: [PATCH] Update README documentation for ActiveRecord with Truncation. Note that the cache_tables option should be set to false if you're using multiple database schemas. --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 29188f6..dd96847 100644 --- a/README.markdown +++ b/README.markdown @@ -197,7 +197,7 @@ The following options are available for ActiveRecord's `:truncation` strategy _o The following option is available for ActiveRecord's `:truncation` and `:deletion` strategy for any DB. -* `:cache_tables` - When set to `true` the list of tables to truncate or delete from will only be read from the DB once, otherwise it will be read before each cleanup run. Set this to `false` if you create and drop tables in your tests. Defaults to `true`. +* `:cache_tables` - When set to `true` the list of tables to truncate or delete from will only be read from the DB once, otherwise it will be read before each cleanup run. Set this to `false` if (1) you create and drop tables in your tests, or (2) you change Postgres schemas (`ActiveRecord::Base.connection.schema_search_path`) in your tests (for example, in a multitenancy setup with each tenant in a different Postgres schema). Defaults to `true`. ### RSpec Example