From 85cd6d097f6e3676be168c48301b2f37f69574b2 Mon Sep 17 00:00:00 2001 From: Diego Algorta Date: Thu, 1 Apr 2021 17:32:27 -0300 Subject: [PATCH] Fix docs about usage of only and except options --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 2fc7e13..8ed6885 100644 --- a/README.markdown +++ b/README.markdown @@ -75,11 +75,11 @@ DatabaseCleaner.clean With the `:truncation` strategy you can also pass in options, for example: ```ruby -DatabaseCleaner.strategy = :truncation, only: %w[widgets dogs some_other_table] +DatabaseCleaner.strategy = [:truncation, only: %w[widgets dogs some_other_table]] ``` ```ruby -DatabaseCleaner.strategy = :truncation, except: %w[widgets] +DatabaseCleaner.strategy = [:truncation, except: %w[widgets]] ``` (I should point out the truncation strategy will never truncate your schema_migrations table.)