-
Notifications
You must be signed in to change notification settings - Fork 27
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
PG::UndefinedColumn: ERROR: column "email" does not exist. #10
Comments
Hey @tiagocassio, I haven't used the devise_token_auth, but there's a chance it doesn't work with attr_encrypted/blind_index. Can you paste the full backtrace for the error? |
Hi @ankane, Thanks for the reply. See the stack below:
|
It looks like devise_token_auth uses a string for queries instead of a symbol - |
Okay, i will find a way to override this method, thanks for help! |
Hi, i'm using this gem to obfuscate some user data including email.
Then, when im trying to retrieve the user through default devise controller using devise_token_auth gem, i'm getting this error:
PG::UndefinedColumn: ERROR: column "email" does not exist.
Interresting that when i retrieve the user by rails console, the error does not appears. What's going on?
This is my model configuration:
And this is my database migration:
Thanks for the support.
The text was updated successfully, but these errors were encountered: