Skip to content

Commit

Permalink
Add Active Record encryption to CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Apr 2, 2021
1 parent 7e1820d commit 224c9b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,24 @@
* Add attribute encryption support.

Encrypted attributes are declared at the model level. These
are regular Active Record attributes backed by a column with
the same name. The system will transparently encrypt these
attributes before saving them into the database and will
decrypt them when retrieving their values.


```ruby
class Person < ApplicationRecord
encrypts :name
encrypts :email_address, deterministic: true
end
```

You can learn more in the [Active Record Encryption
guide](https://edgeguides.rubyonrails.org/active_record_encryption.html).

*Jorge Manrubia*

* Changed Arel predications `contains` and `overlaps` to use
`quoted_node` so that PostgreSQL arrays are quoted properly.

Expand Down

0 comments on commit 224c9b3

Please sign in to comment.