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? -- Posted via http://www.ruby-forum.com/.
-----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-----
hah, I''m very tantalized! I''m off to check it out now, thanks for the tip! -- Posted via http://www.ruby-forum.com/.
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 On Mar 1, 2006, at 5:24 AM, 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? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails