Displaying 1 result from an estimated 1 matches for "validates_uniquenes_of".
Did you mean:
validates_uniqueness_of
2009 Nov 12
0
validates_uniquenes_of with decimal columns and mysql
I''m using this validation in my model:
validates_uniqueness_of :zoom_level,
:scope => [:latitude, :longitude]
:latitude and :longitude are decimal columns in a mysql database. It
isn''t working. I''ve searched in Google and I found that there were an
error with MySQL but it''s supposed to be fixed.
I''m using Rails 2.3.4. Is there a Rails solution