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

installation:
=

Versions:

  1. 1.0 November 18, 2020 (7 ko)

Dépendances de Runtime (1):

Dépendances de Development (3):

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

Propriétaires:

Pushed by:

Auteurs:

  • EdgePetrol

Total de contrôle SHA 256:

=

Total de téléchargements 3 364

Pour cette version 3 364

Version publiée:

License:

MIT

Version de Ruby requise: >= 0

Liens: