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,807 of 192,137
Downloads: 1,057,275
Daily
Ranking: 4,808 of 192,103
Downloads: 655
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 8,651 | 432,081 | guard-consistency_fail |
| 15,231 | 134,520 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 970,934,436 | rspec |
| 36 | 778,810,251 | activerecord |
| 279 | 179,551,852 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |