Add ruby file with AR validations