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: 5,855 of 197,744
Downloads: 1,167,214

Daily

Ranking: 7,855 of 197,724
Downloads: 291

Depended by

RankDownloadsName
8,639498,036guard-consistency_fail
15,848137,787rails-audit

Depends on

RankDownloadsName
291,032,112,907rspec
37855,219,427activerecord
285199,063,254sqlite3

Owners

#GravatarHandle
1icontrptcolin