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,854 of 180,459
Downloads: 3,099

Daily

Ranking: 136,377 of 180,454
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
16853,643,152rake
20800,698,648minitest
34540,079,460activerecord
238132,481,642sqlite3

Owners

#GravatarHandle
1iconguipereira