This project is archived and is in readonly mode.
validation on serialize :some_column is not working
Reported by Alex Vaystikh | November 2nd, 2009 @ 10:41 PM
Declaring a column as serialized via "serialize :some_column" and trying to have it validated, e.g. "validates_uniqueness_of :some_column", will not get validated properly, resulting in the creation of a duplicate entry.
Comments and changes to this ticket
-
Dylan McClung January 8th, 2010 @ 03:57 AM
validates_uniqueness_of uses to_s for text columns, but the value passed to the validator is the marshalled object. The to_s result is compared to the yaml, which will never be equal unfortunately.
-
Rohit Arondekar October 8th, 2010 @ 11:53 AM
- State changed from new to invalid
- Importance changed from to
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>