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

Null value in (non-attr-encrypted) column when upgrading to 4.0.0 #438

Open
prognostikos opened this issue Apr 14, 2023 · 2 comments
Open

Comments

@prognostikos
Copy link

We attempted to upgrade attr_encrypted from 3.1.0 to 4.0.0 but ran into a test failure.

We have a model that has an attr_encrypted column as well as a uuid that is generated on insert by the database. After the upgrade, the uuid column of the model was nil in ruby code, though it was generated properly in the database row. Adding a call to reload before accessing the uuid column fixed the issue.

Rake about says:

Rails version             6.1.7.3
Ruby version              ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin21]
RubyGems version          3.3.26
Rack version              2.2.6.4
@joshbranham
Copy link
Member

Does this only fail in tests? Can you provide a reproduction example?

@prognostikos
Copy link
Author

prognostikos commented Apr 21, 2023 via email

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