lockbox icon indicating copy to clipboard operation
lockbox copied to clipboard

Having a field with default: '' will skip the migration

Open kalemi19 opened this issue 9 months ago • 0 comments

My current user model:

field :email, type: String, default: ''

When I tried to migrate a user, which had a value for the email field, the _ciphertext and _bidx ended up being ''.

No issues when creating a new user.

I found the solution by removing the default attribute from the field, but it would be nice to have this documented if it's by design.

kalemi19 avatar May 16 '24 13:05 kalemi19