How to Validate Inherintly?

Very often, I’d like to know if an object is .valid? inherently - that
is, if it meets all the validations that are run on it by itself, but I
don’t care if one of the fields is not unique.

What’s the best way to determine this - that is, to run all the
validations except the validates_uniquness ones?

(A common use case is when importing data - it’s important to
distinguish between corrupt data, and between data that has already been
imported).

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs