lockbox
lockbox copied to clipboard
Having a field with default: '' will skip the migration
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.