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,936 of 188,317
Downloads: 925,494
Daily
Ranking: 4,305 of 188,299
Downloads: 645
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 9,447 | 332,670 | guard-consistency_fail |
| 14,999 | 131,259 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 936,211,935 | rspec |
| 36 | 733,883,063 | activerecord |
| 275 | 169,331,163 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |