first_or_create does not guarantee uniqueness by itself, and if there is a uniqueness constraint on the database, it may fail with a RecordNotUnique exception. This gem adds atomic_first_or_create, which, in conjunction with a uniqueness constraint, provides the correct behaviour.
Required Ruby Version
>= 0
Authors
EdgePetrol
Versions
- 1.0 November 18, 2020 (7 KB)