Fix password_changed_at default date to 01-01-2015
This commit is contained in:
10
db/migrate/20170914154743_fix_password_changed_at_default.rb
Normal file
10
db/migrate/20170914154743_fix_password_changed_at_default.rb
Normal 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
|
||||
Reference in New Issue
Block a user