https://github.com/stackbuilders/valid_data
Check whether the rows in your database are valid according to your ActiveRecord validations
https://github.com/stackbuilders/valid_data
Last synced: 6 months ago
JSON representation
Check whether the rows in your database are valid according to your ActiveRecord validations
- Host: GitHub
- URL: https://github.com/stackbuilders/valid_data
- Owner: stackbuilders
- License: mit
- Archived: true
- Created: 2014-05-19T15:46:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-07T09:01:54.000Z (over 10 years ago)
- Last Synced: 2025-06-11T15:08:14.375Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 219 KB
- Stars: 5
- Watchers: 59
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.org/stackbuilders/valid_data)
[](https://codeclimate.com/github/stackbuilders/valid_data)
## Installation
Add this line to your application's Gemfile:
gem 'valid_data'
And then execute:
$ bundle
Or install it yourself as:
$ gem install valid_data
## Usage
Invoke the `Rake Task` that is now at your fingertips:
```bash
rake validate_records[30]
```
... where the `30` refers to the amount of extra padding in the printed output.
You should expect to see some output like this:
```bash
Model | Invalid | Total
------------------------------------------------------------------------------------------
MakeNegativeTemplate | 0 | 0
KeywordSet | 0 | 1
Placeholder | 0 | 5
User | 0 | 0
Ad | 1 | 1
```
## Contributing
1. Fork it ( https://github.com/mecampbellsoup/valid_data/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request