Last Updated: February 25, 2016
·
808
· diogob

Use schema_validations to make your ActiveRecord classes more DRY

There are many data validations that should be done in database level as well as in model level. You can use https://github.com/lomba/schema_validations to write this validations only in migrations and have them working in your models without having to write extra code.