sample_rails_tailwind/db/migrate/20250107093124_add_reset_to_users.rb
songtianlun 43d39c3010 feat: add password reset functionality
- Implement PasswordResetsController with new and create actions
- Add views for new and edit password reset forms
- Update routes to include password reset paths
- Create migration to add reset_digest and reset_send_at to users

This commit introduces a complete password reset feature, allowing
users to request a password reset via email. It includes the
necessary controller actions, views, and database schema updates.
The user experience is enhanced with a link to the password reset
form on the login page.
2025-01-07 18:09:44 +08:00

7 lines
171 B
Ruby

class AddResetToUsers < ActiveRecord::Migration[8.0]
def change
add_column :users, :reset_digest, :string
add_column :users, :reset_send_at, :datetime
end
end