RubyGems Navigation menu

composite_primary_keys 0.6.1

ActiveRecords only support a single primary key, preventing their use on legacy databases where tables have primary keys over 2+ columns. This solution allows an ActiveRecord to be extended to support multiple keys using the class method set_primary_keys.

Gemfile
          gem 'composite_primary_keys', '~> 0.6.1'
  
  
  
  
  
  
  

install
          gem install composite_primary_keys -v 0.6.1
  
  
  
  
  
  
  

Total downloads 484,432

For this version 1,772

Show all versions (114 total)

Required Ruby Version: None

Links:

Versions:

  1. 7.0.12 - November 9, 2014 (60.5 KB)
  2. 7.0.11 - October 10, 2014 (61 KB)
  3. 7.0.10 - August 7, 2014 (61 KB)
  4. 7.0.9 - August 3, 2014 (60.5 KB)
  5. 7.0.8 - August 3, 2014 (60.5 KB)
Show all versions (114 total)

Runtime Dependencies: