On Sunday, April 1, 2012 8:35:14 PM UTC-7, iro wrote:
>
> I have setup two shards to my default repo and I can't for the life of 
> me figure out how I am to propagate the migrations to the individual 
> shards.I apologize if this is obvious but I'm stuck. 
> What is the approved approach to running the migrations against the 
> default repo and the registered servers. 
>

Database#each_server can be used for this purpose.  It yields a separate 
Database object for each server/shard, and you can run the migration on 
each Database object that is yielded.

http://sequel.rubyforge.org/rdoc/classes/Sequel/Database.html#method-i-each_server

Jeremy 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/K5og9qNRxjwJ.
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