3scale/issues-test — Issue #613: enforce attribute uniqueness on db level
Author: HakubJozak
Created: 2012-02-13 18:16:06+00:00
State: open

for critical attributes like user's email we should enforce uniqueness on database level with constraint because AR uniqueness validation fails on race condition
related to #22073145 (double submit on signin)
scope by tenant_id

Tasks
- investigate which attributes should be protected
- create database constrains
- cleanup duplicates

https://www.pivotaltracker.com/story/show/23280991