RubyGems Navigation menu

atomic_first_or_create 1.0

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.

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 1.0 - November 18, 2020 (7 KB)

Runtime Abhängigkeiten (1):

Development Abhängigkeiten (3):

minitest ~> 5
rake ~> 13
sqlite3 ~> 1

Besitzer:

Pushed by:

Autoren:

  • EdgePetrol

SHA 256-Prüfsumme:

178df5e74401fb4d7b8eb807106c4cc29ae27fb8a05bf4f2e7657cabb032cb72

Downloads insgesamt 3.104

Für diese Version 3.104

Lizenz:

MIT

Erforderliche Ruby-Version: >= 0

Links: