]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-2.2.2/README.txt
Make sure the ruby quadtile code give the same result as the C version
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / README.txt
1 = Composite Primary Keys for ActiveRecords
2
3 == Summary
4
5 ActiveRecords/Rails famously doesn't support composite primary keys. 
6 This RubyGem extends the activerecord gem to provide CPK support.
7
8 == Installation
9
10     gem install composite_primary_keys
11     
12 == Usage
13   
14     require 'composite_primary_keys'
15     class ProductVariation
16       set_primary_keys :product_id, :variation_seq
17     end
18     
19     pv = ProductVariation.find(345, 12)
20     
21 It even supports composite foreign keys for associations.
22
23 See http://compositekeys.rubyforge.org for more.
24
25 == Running Tests
26
27 See test/README.tests.txt
28
29 == Url
30
31 http://compositekeys.rubyforge.org
32
33 == Questions, Discussion and Contributions
34
35 http://groups.google.com/compositekeys
36
37 == Author
38
39 Written by Dr Nic Williams, drnicwilliams@gmail
40 Contributions by many!
41