Add UTC time zone to default datetime values on schema

This commit is contained in:
Bertocq
2017-11-15 17:43:16 +01:00
parent 9812efcd85
commit 924dae61b6
2 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
class AddTimeZoneToDefaultDatetimes < ActiveRecord::Migration
def change
change_column_default :users, :password_changed_at, DateTime.new(2015, 1, 1, 1, 1, 1, '+00:00')
change_column_default :locks, :locked_until, DateTime.new(2000, 1, 1, 1, 1, 1, '+00:00')
end
end