mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Fix docs about usage of only and except options
This commit is contained in:
parent
a8cfc85ab2
commit
85cd6d097f
1 changed files with 2 additions and 2 deletions
|
@ -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.)
|
||||
|
|
Loading…
Reference in a new issue