Automatically detect the 'not null', 'length', 'uniqueness', and type constraints in the database, and emit the corresponding model validation.
Add the consistency_fail gem to check for missing uniqueness constraints.