Project

validb

0.0
No commit activity in last 3 years
No release in over 3 years
Check the contents of your database by validating the models.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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