openstreetmap-website/vendor/gems/composite_primary_keys-1.1.0
2008-11-15 01:11:27 +00:00
..
lib Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
local Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
scripts Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
tasks Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
test Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
tmp Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
website Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
History.txt Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
init.rb Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
install.rb Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
loader.rb Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
Manifest.txt Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
Rakefile Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
README.txt Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
README_DB2.txt Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00

= 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!