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: 150,857 of 186,995
Downloads: 3,552

Daily

Ranking: 128,483 of 186,959
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,129,028,222rake
161,055,884,353minitest
36698,603,704activerecord
276161,097,927sqlite3

Owners

#GravatarHandle
1iconguipereira