Add convert a missed timestamp column to timestamp with tz
This commit is contained in:
parent
23bd2ab334
commit
7c57ff699d
|
@ -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
|
Loading…
Reference in New Issue