class Member < ApplicationRecord
  attr_encrypted(
    :ssn,
    key: Rails.application.secrets.secret_key_for_ssn_encryption,
  )

  def full_name
    "#{first_name} #{last_name}"
  end
end

class Member < ApplicationRecord
  attribute :ssn
  attr_encrypted(
    :ssn,
    key: Rails.application.secrets.secret_key_for_ssn_encryption,
  )

  def full_name
    "#{first_name} #{last_name}"
  end
end

Fix deprecation re: encrypted attribute
Fix deprecation re: encrypted attribute

```
DEPRECATION WARNING: ssn is not an attribute known to Active Record.
This behavior is deprecated and will be removed in the next version of
Rails. If you'd like ssn to be managed by Active Record, add `attribute :ssn to your class.
```

Adding the attribute to the model fixes and removes this deprecation
warning.
