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.

Reply via email to