Forum: Ruby on Rails How to Validate Inherintly?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
List R. (Guest)
on 2006-01-15 23:23
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
This topic is locked and can not be replied to.