There was an error while loading. Please reload this page.
1 parent c889b94 commit 5e90ac9Copy full SHA for 5e90ac9
README.markdown
@@ -75,11 +75,11 @@ DatabaseCleaner.clean
75
With the `:truncation` strategy you can also pass in options, for example:
76
77
```ruby
78
-DatabaseCleaner.strategy = :truncation, {:only => %w[widgets dogs some_other_table]}
+DatabaseCleaner.strategy = :truncation, only: %w[widgets dogs some_other_table]
79
```
80
81
82
-DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
+DatabaseCleaner.strategy = :truncation, except: %w[widgets]
83
84
85
(I should point out the truncation strategy will never truncate your schema_migrations table.)
0 commit comments