Hello!

Code:

add_column :deadline, :timestamptz, default: 
Sequel.date_add(Sequel::CURRENT_TIMESTAMP, 
days: 14))

Expected default value:

(CURRENT_TIMESTAMP + '14 days'::interval)

Actual default value:

(CURRENT_TIMESTAMP::timestamp without time zone + '14 days'::interval)

What is this casting for? Deadline is not wall-clock, it's a point in the 
absolute time.

-- 
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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to