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 189,602
Downloads: 993,816
Daily
Ranking: 3,745 of 189,566
Downloads: 861
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 8,932 | 387,693 | guard-consistency_fail |
| 15,084 | 132,979 | rails-audit |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 950,555,181 | rspec |
| 36 | 753,177,510 | activerecord |
| 277 | 173,227,032 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | trptcolin |