active storage validate attached code example
Example: active storage validations
This gem can help making some more simple: https://github.com/aki77/activestorage-validator
This gem can help making some more simple: https://github.com/aki77/activestorage-validator