mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Spacing.
This commit is contained in:
parent
ccf49bd3bf
commit
46e82b967e
1 changed files with 3 additions and 3 deletions
|
@ -305,10 +305,10 @@ DatabaseCleaner[:active_record].strategy = :transaction
|
|||
DatabaseCleaner[:mongo_mapper].strategy = :truncation
|
||||
|
||||
#How to specify particular connections
|
||||
DatabaseCleaner[:active_record,{:connection => :two}]
|
||||
DatabaseCleaner[:active_record, { :connection => :two }]
|
||||
|
||||
# You may also pass in the model directly:
|
||||
DatabaseCleaner[:active_record,{:model => ModelWithDifferentConnection}]
|
||||
DatabaseCleaner[:active_record, { :model => ModelWithDifferentConnection }]
|
||||
```
|
||||
|
||||
Usage beyond that remains the same with `DatabaseCleaner.start` calling any setup on the different configured connections, and `DatabaseCleaner.clean` executing afterwards.
|
||||
|
|
Loading…
Reference in a new issue