Skip to content

jgeiger/validb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check your database for invalid records

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages