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

Clarification about setup with rails 6 #230

Open
robotex82 opened this issue Nov 11, 2022 · 1 comment
Open

Clarification about setup with rails 6 #230

robotex82 opened this issue Nov 11, 2022 · 1 comment

Comments

@robotex82
Copy link

I'm just following the readme to setup devise-two-factor. To setup encryption one should setup db encryption by issuing following command:

rails db:encryption:init

On Rails 6 this fails with:

rails aborted!
Don't know how to build task 'db:encryption:init' (See the list of available tasks with `rails --tasks`)
Did you mean?  db:environment:set

IIRC Active Record Encryption was introduced with Rails 7.

Should we use a version < 5 of this gem for rails 6 or is there a way to setup the current version with rails 6?

@dmytro-savochkin
Copy link

Well, I am not a maintainer here or anything like that, but from the changelog we can see it says "Rails 7 is now required" for version 5.0.0 so I guess you should use gem version < 5 for rails 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants