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:
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:
Model | Invalid | Total
------------------------------------------------------------------------------------------
MakeNegativeTemplate | 0 | 0
KeywordSet | 0 | 1
Placeholder | 0 | 5
User | 0 | 0
Ad | 1 | 1
Contributing
- Fork it ( https://github.com/mecampbellsoup/valid_data/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request