Categories: None [Edit]
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,825 of 196,721
Downloads: 1,156,776
Daily
Ranking: 6,815 of 196,694
Downloads: 204
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 8,538 | 497,298 | guard-consistency_fail |
| 15,718 | 137,410 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 1,017,967,488 | rspec |
| 37 | 835,846,227 | activerecord |
| 284 | 194,725,346 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |