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,787 of 193,241
Downloads: 1,095,288
Daily
Ranking: 4,447 of 193,214
Downloads: 286
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 8,499 | 461,087 | guard-consistency_fail |
| 15,432 | 135,462 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 983,169,856 | rspec |
| 36 | 794,042,868 | activerecord |
| 279 | 183,901,264 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |