pablogomez@utp.edu.co
2006-Jun-19 00:17 UTC
[Rails] Migration:Several field in primary key
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hail!. How I can use several fields in my primary key? :id, it''s the only primary key... For example, i want to use : Primary key (:id,:code). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEle0iL/7qrmQA7FkRAhRjAJ4opOmBlaX13hQ+re5XHhPm53I2kQCgr4Op sJMpYGz0XyO3IKaUNuKr4PE=hQww -----END PGP SIGNATURE-----
ActiveRecord does not support primary keys composed of multiple attributes.... at least at the moment. -Jonathan. On 6/19/06, pablogomez@utp.edu.co <pablogomez@utp.edu.co> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hail!. How I can use several fields in my primary key? > > :id, it''s the only primary key... For example, i want to use : > Primary key (:id,:code). > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFEle0iL/7qrmQA7FkRAhRjAJ4opOmBlaX13hQ+re5XHhPm53I2kQCgr4Op > sJMpYGz0XyO3IKaUNuKr4PE> =hQww > -----END PGP SIGNATURE----- > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >