Sha256: 749b6bb93351c491a36867cfd3eae46c33ee8cfe5c895093b77fafbca485bedf
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
# Database Cleaner Adapter for Mongoid [![Build Status](https://travis-ci.org/DatabaseCleaner/database_cleaner-mongoid.svg?branch=master)](https://travis-ci.org/DatabaseCleaner/database_cleaner-mongoid) [![Code Climate](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-mongoid/badges/gpa.svg)](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-mongoid) Clean your Mongoid databases with Database Cleaner. See https://github.com/DatabaseCleaner/database_cleaner for more information. ## Installation ```ruby # Gemfile group :test do gem 'database_cleaner-mongoid' end ``` ## Supported Strategies <table> <tbody> <tr> <th>Truncation</th> <th>Transaction</th> <th>Deletion</th> </tr> <tr> <td> <b>Yes</b></td> <td> No</td> <td> No</td> </tr> </tbody> </table> (Default strategy is denoted in bold) ## Configuration options <table> <tbody> <tr> <th>ORM</th> <th>How to access</th> <th>Notes</th> </tr> <tr> <td> Mongoid</td> <td> <code>DatabaseCleaner[:mongoid]</code></td> <td> Multiple databases supported for Mongoid 3. Specify <code>DatabaseCleaner[:mongoid, {:connection => :db_name}]</code> </td> </tr> </tbody> </table> ## COPYRIGHT See [LICENSE] for details.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
database_cleaner-mongoid-1.8.1 | README.md |
database_cleaner-mongoid-1.8.0 | README.md |
database_cleaner-mongoid-1.8.0.beta | README.md |