mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add note about action text
This commit is contained in:
parent
2035138115
commit
fd91dac6f4
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,10 @@ config.active_record.encryption.encrypt_fixtures = true
|
|||
|
||||
When enabled, all the encryptable attributes will be encrypted according to the encryption settings defined in the model.
|
||||
|
||||
#### Action text fixtures
|
||||
|
||||
To encrypt action text fixtures you should place them in `fixtures/action_text/encrypted_rich_texts.yml`.
|
||||
|
||||
### Supported types
|
||||
|
||||
`active_record.encryption` will serialize values using the underlying type before encrypting them, but *they must be serializable as strings*, as that will be the value that the library will encrypt. Structured types like `serialized` are supported out of the box.
|
||||
|
|
Loading…
Reference in a new issue