UUID As A Primary Key
Written October 28th, 2005
Paul Dix wrote up a quick how-to on using UUIDTools and ActiveRecord for generating UUIDs for use as a primary key on your tables. Based on a couple of comments over on Robi Sen’s blog. Thanks for doing this Paul—judging by the keywords people that find their way to this blog are using for their google searches, there’s a surprising number of people trying to do this.
Thats a great How-To. Ill have to blog this and start using this method. Thanks again for your comments and help to a Rails newbie.
It’s the exact same code I posted on your blog earlier, by the way (just without the HTML formatting getting eaten). But you’re quite welcome!
Leave a Response