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,888 of 188,757
Downloads: 951,460
Daily
Ranking: 4,088 of 188,742
Downloads: 1,181
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 9,219 | 353,433 | guard-consistency_fail |
| 14,987 | 132,592 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 941,173,382 | rspec |
| 36 | 740,878,701 | activerecord |
| 276 | 170,904,501 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |