Validb
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
License
Released under the MIT License