rsim / composite_primary_keys forked from drnic/composite_primary_keys
- Source
- Commits
- Network (16)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Darrin Holst (author)
Sat Jun 07 10:28:55 -0700 2008
commit 78729877bd77d0aef699a7b6373694990470d10d
tree 9f18de1e51ec4b798af1669334b24ab1d8166037
parent 2ba0b2cd90237678fad87c12bf336122d328aa8f
tree 9f18de1e51ec4b798af1669334b24ab1d8166037
parent 2ba0b2cd90237678fad87c12bf336122d328aa8f
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Jun 07 10:27:35 -0700 2008 | |
| |
History.txt | ||
| |
Manifest.txt | ||
| |
README.txt | Wed Aug 15 01:23:46 -0700 2007 | |
| |
README_DB2.txt | Wed Aug 15 01:23:46 -0700 2007 | |
| |
Rakefile | ||
| |
init.rb | Thu Aug 16 01:52:14 -0700 2007 | |
| |
install.rb | Thu Jul 20 00:59:30 -0700 2006 | |
| |
lib/ | ||
| |
loader.rb | Thu Aug 16 01:35:45 -0700 2007 | |
| |
local/ | Thu Sep 27 14:42:16 -0700 2007 | |
| |
scripts/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
website/ |
README.txt
= 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!

