Does anyone, by chance, know how to obtain a list of all the defined activerecord validations at runtime?
In other words, I'd like to query a model for all the fields that are unique, or required.
I found this: read_inheritable_attribute(:validate), but it seems to be deprecated in later versions of rails. Thanks so much for any insight.