Update README.markdown

This commit is contained in:
Micah Geisel 2021-02-08 09:00:15 -08:00 committed by GitHub
parent c889b94a6d
commit 5e90ac9966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.)