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,015 of 187,638
Downloads: 875,011

Daily

Ranking: 3,174 of 187,621
Downloads: 2,294

Depended by

RankDownloadsName
9,953291,768guard-consistency_fail
14,983129,627rails-audit

Depends on

RankDownloadsName
28925,682,568rspec
36720,395,242activerecord
275165,896,662sqlite3

Owners

#GravatarHandle
1icontrptcolin