added a unique constraint to make sure there is only one custom_attributes_entry per custom_attributable. Unfortunately validates_uniqueness_of doesn't cover race conditions