Project

valid_data

0.0
No commit activity in last 3 years
No release in over 3 years
As your Rails projects evolve and grow, your model validations tend to change as well. An unfortunate side effect of this evolution is that your table- backed ActiveRecord::Base descendants end up with rows that instantiate invalid model instances. ValidData generates a report for your Rails application, notifying you exactly how many rows in your models are invalid for each model.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.9
>= 3.0
~> 10
~> 2
 Project Readme

Build Status Code Climate

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

  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