database_cleaner/adapters/database_cleaner-moped/README.md

58 lines
1.3 KiB
Markdown
Raw Normal View History

2019-05-20 16:03:59 -06:00
# Database Cleaner Adapter for Moped
2019-05-20 16:03:59 -06:00
[![Build Status](https://travis-ci.org/DatabaseCleaner/database_cleaner-moped.svg?branch=master)](https://travis-ci.org/DatabaseCleaner/database_cleaner-moped)
[![Code Climate](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-moped/badges/gpa.svg)](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-moped)
2019-05-20 16:03:59 -06:00
Clean your Moped databases with Database Cleaner.
2019-05-20 16:03:59 -06:00
See https://github.com/DatabaseCleaner/database_cleaner for more information.
2019-05-20 16:03:59 -06:00
## Installation
```ruby
2019-05-20 16:03:59 -06:00
# Gemfile
group :test do
gem 'database_cleaner-moped'
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)
2019-05-20 16:03:59 -06:00
## Configuration options
<table>
<tbody>
<tr>
<th>ORM</th>
<th>How to access</th>
<th>Notes</th>
</tr>
<tr>
<td> Moped</td>
<td> <code>DatabaseCleaner[:moped]</code></td>
<td> It is necessary to configure database name with <code>DatabaseCleaner[:moped].db = db_name</code> otherwise name `default` will be used.</td>
</tr>
</tbody>
</table>
2019-05-20 16:03:59 -06:00
## COPYRIGHT
2019-05-20 16:03:59 -06:00
See [LICENSE] for details.