Categories: None [Edit]

atomic_first_or_create

https://rubygems.org/gems/atomic_first_or_create
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.

Total

Ranking: 152,373 of 189,875
Downloads: 3,707

Daily

Ranking: 127,148 of 189,851
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,246,109,323rake
141,156,403,570minitest
36757,487,420activerecord
278174,072,624sqlite3

Owners

#GravatarHandle
1iconguipereira