Erebus.Schema.hashed_encrypted_field

You're seeing just the macro hashed_encrypted_field, go back to Erebus.Schema module for more information.
Link to this macro

hashed_encrypted_field(name)

View Source (macro)

Defines three fields:

  • name: virtual field of type string
  • name_encrypted: field of type binary storing encrypted data
  • name_hash: field of type string, storing sha512 version of given data, for quick searching

Please note that if you're using it with a database underneath, these fields need to be of type:

  • name_encrypted: bytea
  • name_hash: text