Forum: Ruby on Rails How to Validate Inherintly?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ccfe7d097475a32dc3ff78d6fc42c852?d=identicon&s=25 List Recv (lstrecv)
on 2006-01-15 22: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
imported).
This topic is locked and can not be replied to.