Add convert a missed timestamp column to timestamp with tz

This commit is contained in:
Petko Bordjukov 2019-05-05 14:12:06 +03:00
parent 23bd2ab334
commit 7c57ff699d
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
class ConvertSlotsEndsAtToTimestampWithTz < ActiveRecord::Migration[5.2]
def up
transaction do
execute "ALTER TABLE slots ALTER ends_at TYPE timestamptz USING ends_at AT TIME ZONE 'UTC';"
end
end
end