Fixed readme

This commit is contained in:
Vital 2021-02-11 13:00:25 +02:00 committed by Micah Geisel
parent 5e90ac9966
commit 068656a246

View file

@ -300,10 +300,10 @@ DatabaseCleaner[:active_record].strategy = :transaction
DatabaseCleaner[:mongo_mapper].strategy = :truncation DatabaseCleaner[:mongo_mapper].strategy = :truncation
# How to specify particular databases # How to specify particular databases
DatabaseCleaner[:active_record, { db: :two }] DatabaseCleaner[:active_record, db: :two]
# You may also pass in the model directly: # You may also pass in the model directly:
DatabaseCleaner[:active_record, { db: ModelWithDifferentConnection }] DatabaseCleaner[:active_record, db: ModelWithDifferentConnection]
``` ```
Usage beyond that remains the same with `DatabaseCleaner.start` calling any setup on the different configured databases, and `DatabaseCleaner.clean` executing afterwards. Usage beyond that remains the same with `DatabaseCleaner.start` calling any setup on the different configured databases, and `DatabaseCleaner.clean` executing afterwards.