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

安裝:
=

版本列表:

  1. 1.0 November 18, 2020 (7.0 KB)

Runtime 相依性套件 (1):

Development 相依性套件 (3):

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

擁有者:

推送者:

作者:

  • EdgePetrol

SHA 256 總和檢查碼:

=

總下載次數 3,364

這個版本 3,364

版本发布:

授權:

MIT

Ruby 版本需求: >= 0

相關連結: