Sha256: 2f753b529144eaa2adacbc83a8cee1c20a2e39d67ace4aaf7a953ef0856ce6b7

Contents?: true

Size: 845 Bytes

Versions: 29

Compression:

Stored size: 845 Bytes

Contents

= Composite Primary Keys for ActiveRecords

== Summary

ActiveRecords/Rails famously doesn't support composite primary keys. 
This RubyGem extends the activerecord gem to provide CPK support.

== Installation

    gem install composite_primary_keys
    
== Usage
  
    require 'composite_primary_keys'
    class ProductVariation
      set_primary_keys :product_id, :variation_seq
    end
    
    pv = ProductVariation.find(345, 12)
    
It even supports composite foreign keys for associations.

See http://compositekeys.rubyforge.org for more.

== Running Tests

See test/README.tests.txt

== Url

http://compositekeys.rubyforge.org

== Questions, Discussion and Contributions

http://groups.google.com/compositekeys

== Author

Written by Dr Nic Williams, drnicwilliams@gmail
Contributions by many!

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
kovyrin-composite_primary_keys-2.3.2 README.txt
mingusbabcock-composite_primary_keys-2.2.2.1 README.txt
tyler-composite_primary_keys-1.1.0 README.txt
tyler-composite_primary_keys-1.1.1 README.txt
tyler-composite_primary_keys-1.1.2 README.txt
tyler-composite_primary_keys-1.1.3 README.txt
tyler-composite_primary_keys-1.1.4 README.txt
composite_primary_keys-2.3.5.1 README.txt
composite_primary_keys-2.3.5 README.txt
composite_primary_keys-2.3.2 README.txt
composite_primary_keys-0.9.0 README.txt
composite_primary_keys-0.9.90 README.txt
composite_primary_keys-0.9.91 README.txt
composite_primary_keys-0.9.92 README.txt
composite_primary_keys-0.9.93 README.txt
composite_primary_keys-1.0.0 README.txt
composite_primary_keys-1.0.1 README.txt
composite_primary_keys-1.0.10 README.txt
composite_primary_keys-1.0.2 README.txt
composite_primary_keys-1.0.3 README.txt