You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might just be one to document as it might save someone in the future a couple of hours:
If you have an encrypted field, but not every row in the database has been encrypted, then Model.decrypt_table! will fail with ActiveSupport::MessageEncryptor::InvalidMessage.
I think this must have come about in my data because a new field with existing data has been added to the list.
I got round it by just adding a decrypt_table! class method to the model in question which suppresses the error:
This might just be one to document as it might save someone in the future a couple of hours:
If you have an encrypted field, but not every row in the database has been encrypted, then
Model.decrypt_table!
will fail withActiveSupport::MessageEncryptor::InvalidMessage
.I think this must have come about in my data because a new field with existing data has been added to the list.
I got round it by just adding a
decrypt_table!
class method to the model in question which suppresses the error:The text was updated successfully, but these errors were encountered: