# Validates\_uniqueness\_of in 2.1

**URL:** <https://www.ruby-forum.com/t/validates-uniqueness-of-in-2-1/145349>\
**Category:** Rails\
**Created:** [August 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-in-2-1/145349 "2008-08-08T10:24:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![therealadam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@therealadam](https://www.ruby-forum.com/u/therealadam)\
**Post date:** [August 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-in-2-1/145349/1 "2008-08-08T10:24:10Z")

</div>

I updated an application from Activerecord 2.0.2.9216 to 2.1.0 and now  
validates\_uniqueness\_of doesn’t seem to be working. The unique  
constraint was caught by the activerecord validation in 2.0.2, but now  
it’s getting past that and being caught by the database instead.

When I do a gem ‘activerecord’ ‘=2.0.2.9216’ before activerecord  
require it works again.
