• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can active record be set to use uuid instead of autoincrement automatically for the pk?

#3
[eluser]Unknown[/eluser]
Thanks PistolPete,

Thats in fact the post I hinted at. This solution (I havent tested it yet) requires slightly more work, The code is then not interchangeable with a schema using ints and autoincrements.

I prefer using uuids for data portability and guaranteed uniqueness and was comparing against cakephp where the system automatically does it if you declare your id field as being char 26 (which is technically not uuid but works)(which is pretty cool).

I guess I'll look and see how easy it would be to update the active record files.

Andre


Messages In This Thread
Can active record be set to use uuid instead of autoincrement automatically for the pk? - by El Forum - 03-02-2009, 09:57 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.