```ruby
class Member < ApplicationRecord
  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
user
```ruby
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
```
assistant