Displaying 1 result from an estimated 1 matches for "m000786".
Did you mean:
1000786
2006 Apr 03
1
Automatically changing strings to pass unique constraints
I have validates_uniqueness_of on one of my model''s attributes. I''d
like to make it so that I can set the attribute to something, and if
it clashes with an existing record, automatically append a number to
it. I''m not really sure of the best way to go about this - any
recommendations?
Pat