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: 6,048 of 187,305
Downloads: 858,497
Daily
Ranking: 4,152 of 187,286
Downloads: 1,179
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
10,102 | 279,844 | guard-consistency_fail |
14,966 | 128,493 | rails-audit |
Depends on
Rank | Downloads | Name |
---|---|---|
27 | 920,335,511 | rspec |
36 | 712,826,954 | activerecord |
274 | 163,989,987 | sqlite3 |
Owners
# | Gravatar | Handle |
---|---|---|
1 | trptcolin |