Right now rails doesn't support composite keys, that is id1, id2, and id3 are in the primary key of the table. Does anyone know if this is being discussed for future versions, or is it pretty much out of scope?
on 2006-02-28 21:24
on 2006-02-28 21:45
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 28, 2006, at 12:24 PM, Joe Cairns wrote: > Right now rails doesn't support composite keys, that is id1, id2, and > id3 are in the primary key of the table. Does anyone know if this is > being discussed for future versions, or is it pretty much out of > scope? Composite keys would surely inch further in-scope if some enterprising soul had a thoroughly tested implementation to flog us with. The polymorphic joins DHH did for Rails 1.1 are a nice example of working with composite foreign keys. Please do investigate if sufficiently tantalized ;) Best, jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFEBLZIAQHALep9HFYRAjDhAJ9kkI4ox4chhuvAOKxVEz4nWmjLYACfQvVP wy8FRX+s2jIPgqaC+uFKe8w= =aLH2 -----END PGP SIGNATURE-----
on 2006-02-28 21:49
hah, I'm very tantalized! I'm off to check it out now, thanks for the tip!
on 2006-03-01 13:52
It is pretty much out of scope. The consensus is that there is no obvious benefit of this particular feature. I tend to think otherwise, but oh well.. cheers, daesan