Skip to content

Commit 94cffaf

Browse files
authored
Update README.md
1 parent 4437769 commit 94cffaf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ The truncation and deletion strategies may accept the following options:
5050

5151
```ruby
5252
# Only truncate the "users" table.
53-
DatabaseCleaner[:sequel].strategy = :truncation, { only: ["users"] }
53+
DatabaseCleaner[:sequel].strategy = :truncation, only: ["users"]
5454

5555
# Delete all tables except the "users" table.
56-
DatabaseCleaner[:sequel].strategy = :deletion, { except: ["users"] }
56+
DatabaseCleaner[:sequel].strategy = :deletion, except: ["users"]
5757
```
5858

5959
* `:pre_count` - When set to `true`, this will check each table for existing rows before truncating or deleting it. This can speed up test suites when many of the tables are never populated. Defaults to `false`.

0 commit comments

Comments
 (0)