Sha256: 3582f938ef8daab57e459f8e7ff0c365d19f9f2568560a7c0e232439fc6dda3a

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

# Data Sanity Inspector
    It is a gem with following options to check sanity of database
        # All data in all models
        # Random data in all models :
            * specify n number of random records,
            * specify criteria

# It would output result in a table with following details

    +----+------------+-------------+-------------------+-----------------------+
    | id | table_name | primary_key	| primary_key_value | errors                |
    +----+------------+-------------+-------------------+-----------------------+
    | 1	 |  Person	  | person_id	| 128	            | “Fmno can’t be blank” |
    +----+------------+-------------+-------------------+-----------------------+

# HOW TO USE
    * adding migrations : rake data_sanity:db:migrate
    * removing migrations : rake data_sanity:db:rollback
    * Use normal rake db:migrate to migrate the migration added by rake data_sanity:db:migrate
    * You can add a sample criteria file using rake data_sanity:criteria
    * To Investigate your data use rake data_sanity:investigate
        - By default it runs for all data
        - rake data_sanity:investigate[random,2]
            : parameter 1: random: show you want random selection
            : parameter 2: lets you add as many random records you want to verify [default is 1]
            : Note: if you have a criteria file it works only for models in criteria file

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
data_sanity-0.1.9 README.md
data_sanity-0.1.8 README.md
data_sanity-0.1.7 README.md
data_sanity-0.1.6 README.md
data_sanity-0.1.5 README.md
data_sanity-0.1.4 README.md