devise-two-factor
devise-two-factor copied to clipboard
Clarification about setup with rails 6
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?
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.