2020-08-07 01:14:14 +02:00
|
|
|
class UserPasswordReset < ActiveRecord::Migration[4.2]
|
2009-01-06 11:49:19 +01:00
|
|
|
def self.up
|
|
|
|
add_column :users, :reset_password_token, :string
|
2021-03-01 15:27:26 +01:00
|
|
|
add_column :users, :reset_password_expires, :timestamp
|
2009-01-06 11:49:19 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :users, :reset_password_token
|
|
|
|
remove_column :users, :reset_password_expires
|
|
|
|
end
|
|
|
|
end
|