This works like a charm. Thanks.

How do I incorporate these into a migration? I've been messing with it
but nothing in the documentation seems obvious. Is there a "proper"
way to use methods in Sequel::Postgres::DatabaseMethods (since I'll
need to drop the trigger in the .down method)?

On Sep 23, 9:12 am, Jeremy Evans <[email protected]> wrote:
> On Sep 23, 8:37 am, cult hero <[email protected]> wrote:
>
> > I'll have to read up on triggers then. I'm guessing that this will
> > require literal SQL in my migrations.
>
> Probably if you are using MySQL.  If you were using PostgreSQL, there
> ishttp://github.com/jeremyevans/sequel_postgresql_triggers
>
> And I would definitely recommend doing this at the database level and
> not the application level unless you are targetting more than one
> database.
>
> 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