fix rails 4.2 deprecation warning in uniqueness validator
Test on travis against rails 4.0 and 4.1