mirror of
				https://github.com/DatabaseCleaner/database_cleaner
				synced 2023-03-27 23:22:03 -04:00 
			
		
		
		
	Fixed readme
This commit is contained in:
		
							parent
							
								
									5e90ac9966
								
							
						
					
					
						commit
						068656a246
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -300,10 +300,10 @@ DatabaseCleaner[:active_record].strategy = :transaction
 | 
			
		|||
DatabaseCleaner[:mongo_mapper].strategy = :truncation
 | 
			
		||||
 | 
			
		||||
# How to specify particular databases
 | 
			
		||||
DatabaseCleaner[:active_record, { db: :two }]
 | 
			
		||||
DatabaseCleaner[:active_record, db: :two]
 | 
			
		||||
 | 
			
		||||
# 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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue