public
Description: Composite Primary Keys support for Active Record
Homepage: http://compositekeys.rubyforge.org
Clone URL: git://github.com/drnic/composite_primary_keys.git
composite_primary_keys / README.txt
100644 42 lines (23 sloc) 0.845 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
= 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!