activerecord - replace validates_uniquess_of with unique db index and handle ActiveRecord::RecordNotUnique gracefully