On 8 Aug 2011, at 20:59, Jeremy Evans wrote:
>
> Most databases can use Sequel::CURRENT_TIMESTAMP, but I don't believe
> SQLite supports that. You just need to add a .lit, so that the string
> is interpreted a literal SQL code instead of an SQL string:
>
> DateTime :sent_on, :null=>false, :default=>
> "(datetime('now','localtime'))".lit
>
> Jeremy
Ah, thanks very much!
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.