Convert end_date in conferences to timestamp with tz

This commit is contained in:
Petko Bordjukov 2019-05-05 14:18:36 +03:00
parent 7c57ff699d
commit e67f719998
1 changed files with 7 additions and 0 deletions

View File

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