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:
=

instalar:
=

Versões:

  1. 1.0 November 18, 2020 (7 KB)

Runtime Dependencies (1):

Development Dependencies (3):

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

Donos:

Pushed by:

Autores:

  • EdgePetrol

SHA 256 checksum:

=

Total de downloads 3.360

Desta versão 3.360

Versão lançada:

Licença:

MIT

Versão Requerida do Ruby: >= 0

Links: