Categories: None [Edit]

consistency_fail

https://rubygems.org/gems/consistency_fail
https://github.com/trptcolin/consistency_fail
With more than one application server, validates_uniqueness_of becomes a lie. Two app servers -> two requests -> two near-simultaneous uniqueness checks -> two processes that commit to the database independently, violating this faux constraint. You'll need a database-level constraint for cases like these. consistency_fail will find your missing unique indexes, so you can add them and stop ignoring the C in ACID.

Total

Ranking: 6,175 of 188,756
Downloads: 595,661

Daily

Ranking: 5,459 of 188,734
Downloads: 444

Depended by

RankDownloadsName
12,417143,850guard-consistency_fail
13,931117,054rails-audit

Depends on

RankDownloadsName
23760,645,882rspec
35532,686,218activerecord
237131,169,765sqlite3

Owners

#GravatarHandle
1icontrptcolin