Validates_uniqueness_of in 2.1

I updated an application from Activerecord 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’ ‘=’ before activerecord
require it works again.

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