Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
/ valid_data Public archive

Check whether the rows in your database are valid according to your ActiveRecord validations

License

Notifications You must be signed in to change notification settings

stackbuilders/valid_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check whether the rows in your database are valid according to your ActiveRecord validations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages