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,969 of 188,014
Downloads: 901,756

Daily

Ranking: 3,393 of 188,000
Downloads: 1,872

Depended by

RankDownloadsName
9,693313,329guard-consistency_fail
14,978130,569rails-audit

Depends on

RankDownloadsName
29931,217,412rspec
36727,201,535activerecord
275167,814,311sqlite3

Owners

#GravatarHandle
1icontrptcolin