Validb

Gem Version Dependency Status Build Status Code Climate

Description

Check your database for invalid models.

Installation

Add this line to your Gemfile

gem 'validb'

And then:

bundle

Usage

Generate config file in config/validb.json

rake validb:generate_config

Example validb.json file

{
  "ignored_models": [
    "Blog",
    "Post"
  ],
  "ignored_prefixes": [
    "Api"
  ],
  "batch_size": 1000
}

Launch sidekiq

sidekiq -L log/sidekiq.log

Validate all model records

rake validb:validate 

Validate specific model records

rake validb:validate models="Blog,Comment"

Uses

sidekiq

sidekiq_status

License

Released under the MIT License