Skip to content

Commit 5e90ac9

Browse files
authored
Update README.markdown
1 parent c889b94 commit 5e90ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ DatabaseCleaner.clean
7575
With the `:truncation` strategy you can also pass in options, for example:
7676

7777
```ruby
78-
DatabaseCleaner.strategy = :truncation, {:only => %w[widgets dogs some_other_table]}
78+
DatabaseCleaner.strategy = :truncation, only: %w[widgets dogs some_other_table]
7979
```
8080

8181
```ruby
82-
DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
82+
DatabaseCleaner.strategy = :truncation, except: %w[widgets]
8383
```
8484

8585
(I should point out the truncation strategy will never truncate your schema_migrations table.)

0 commit comments

Comments
 (0)