RubyGems Navigation menu

consistency_fail 0.3.2

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.

Gemfile
          gem 'consistency_fail', '~> 0.3.2'
  
  
  
  
  
  
  

install
          gem install consistency_fail
  
  
  
  
  
  
  

Licenses:

  • MIT

Total downloads 20,365

For this version 7,971

Show all versions (8 total)

Required Ruby Version: None

Links:

Versions:

  1. 0.3.2 - July 23, 2013 (11.5 KB)
  2. 0.3.1 - July 18, 2013 (11.5 KB)
  3. 0.3.0 - January 18, 2013 (11 KB)
  4. 0.2.2 - January 4, 2012 (10.5 KB)
  5. 0.2.1 - June 17, 2011 (11 KB)
Show all versions (8 total)

Development Dependencies: