Fix password_changed_at default date to 01-01-2015

This commit is contained in:
Bertocq
2017-09-14 17:49:45 +02:00
parent 93323cb917
commit e3a45baa37
2 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
class FixPasswordChangedAtDefault < ActiveRecord::Migration
def up
change_column_default :users, :password_changed_at, Time.new(2015, 1, 1, 1, 1, 1)
end
def down
change_column_default :users, :password_changed_at, Time.now
end
end