On Sep 24, 1:30 pm, Adrian Madrid <[email protected]> wrote:
> Thanks for checking it out. In this case I want to use UUIDs because
> relational databases are only one of the possible storage strategies and
> because I want to be able to move some data around (production <-> local).
> And yes, at least one of the storage strategies can do sharding.

Then using UUIDs does make sense.

> One other thing I needed to make everything work in my case was foreign_key
> in the migration.
> # I used this
> char :site_id, :size => 36, :null => true, :key => :id, :table => :sites
>
> # Instead of this
> foreign_key :site_id, :table => :sites

You could also do:

  foreign_key :site_id, :sites, :type=>:char, :size => 36, :null =>
true

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to