Skip to content

NoMethodError: undefined method `attr_encrypted' #21

Description

@richardonrails

Just trying out your gem since from the documentation it seems a lot more straightforward than some of the existing Devise 2FA/OTP gems (mentioned in #20)

First issue I ran into is this:

$ rake db:migrate
rake aborted!
NoMethodError: undefined method `attr_encrypted' for User (call 'User.connection' to establish a connection):Class
Did you mean?  attr_readonly

I'm using Rails 6 with a pretty standard Devise setup.

Does attr_encrypted need to be added as a dependency? Even when I include that in my gemfile and try to re-run the migration then I get a different error (`ArgumentError: Unknown validator: 'SymmetricEncryptionValidator')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions