Validates uniqueness failing oddly

Hey guys

I have this question on stack overflow(I only use it because it’s easier
to
format the code). is anybody willing to help?

http://stackoverflow.com/questions/22932742/rails-validates-uniqueness-is-failing-oddly/

all the best,

Andre