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,201 of 183,021
Downloads: 672,327
Daily
Ranking: 6,200 of 183,007
Downloads: 331
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
11,943 | 169,774 | guard-consistency_fail |
14,345 | 121,778 | rails-audit |
Depends on
Rank | Downloads | Name |
---|---|---|
25 | 816,166,900 | rspec |
35 | 594,014,485 | activerecord |
250 | 141,179,420 | sqlite3 |
Owners
# | Gravatar | Handle |
---|---|---|
1 | trptcolin |