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,834 of 197,051
Downloads: 1,161,676
Daily
Ranking: 7,167 of 197,010
Downloads: 323
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 8,593 | 497,766 | guard-consistency_fail |
| 15,791 | 137,623 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 1,024,975,886 | rspec |
| 37 | 845,130,767 | activerecord |
| 285 | 196,796,104 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |