How I run my Sequel migrations:

http://obfuscurity.com/2011/11/Sequel-Migrations-on-Heroku

-J.

On Sat, Jan 21, 2012 at 03:58:15PM +0000, Iain Barnett wrote:
> Hi,
> 
> I was wondering if there's an alloted place/way for adding helpers to
> migrations? Obviously I can just add them in the normal Rubyish ways, but
> if there's something better (as a plugin, for example) then I'll use that.
> 
> Right now, it's to add in this in particular:
> 
> 
> 
>     def default_datetime
>       if DB.database_type == :sqlite
>         "(datetime('now','localtime'))".lit
>       else
>         Sequel::CURRENT_TIMESTAMP
>       end
>     end
> 
> Any insight will be gratefully accepted.
> 
> Regards,
> Iain
> 
> -- 
> 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.
> 

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/

-- 
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