You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using find_or_create_by there could be a race condition between searching for the record, not finding it, and then creating it, if another process creates the record in the meantime resulting in a duplicate key error.