devise-two-factor icon indicating copy to clipboard operation
devise-two-factor copied to clipboard

Clarification about setup with rails 6

Open robotex82 opened this issue 2 years ago • 1 comments

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?

robotex82 avatar Nov 11 '22 10:11 robotex82

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.

dmytro-savochkin avatar Dec 22 '22 20:12 dmytro-savochkin