mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Update README.markdown
This commit is contained in:
parent
c889b94a6d
commit
5e90ac9966
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