On Thursday, December 10, 2015 at 11:35:31 AM UTC-7, cootcraig wrote:
>
> Advice on this is welcome.  I am not concerned about support for
> anything but Postgresql right now.
>
>
I have not done this for a while, but here is how I can
run SQL in the migration:
 
http://sequel.jeremyevans.net/rdoc/files/doc/migration_rdoc.html
--- These methods handle the vast majority of cross database schema
--- modification SQL. If you need to drop down to SQL to execute some 
database
--- specific code, you can use the run method:
--- 
--- Sequel.migration do
---   up{run 'CREATE TRIGGER ...'}
---   down{run 'DROP TRIGGER ...'}
--- end
--- 
--- In this case, we are using { and } instead of do and end to define the
--- blocks. Just as before, the run methods inside the blocks are called
--- on the Database object, which just executes the code on the underlying
--- database.
 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to