foodsoft/db/migrate/010_user_password_reset.rb
2020-09-05 14:40:11 +02:00

12 lines
313 B
Ruby

class UserPasswordReset < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :reset_password_token, :string
add_column :users, :reset_password_expires, :timestamp
end
def self.down
remove_column :users, :reset_password_token
remove_column :users, :reset_password_expires
end
end