add unique db indices to match all ActiveRecord validations