Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing clean up step on the upgrading guide #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@ This "clean up" phase can happen at the same time as your initial deployment but
end
end
```
4. Remove `otp_secret_encryption_key` from the model setup. This also assumes you successfully ran the rake task in step 1.
```ruby
# from this:
devise :two_factor_authenticatable,
otp_secret_encryption_key: ENV['YOUR_ENCRYPTION_KEY_HERE']

# to this:
devise :two_factor_authenticatable
```

# Guide to upgrading from 2.x to 3.x

Expand Down