Commit d7fa0267 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'add-text-limit-column-exemption' into 'master'

Add exceptions to database text limit docs

See merge request gitlab-org/gitlab!53105
parents d22ac2bf d7b65eed
......@@ -34,6 +34,12 @@ but only for updating the declaration of the columns. We can then validate it at
`VALIDATE CONSTRAINT`, which requires only a `SHARE UPDATE EXCLUSIVE LOCK` (only conflicts with other
validations and index creation while it allows reads and writes).
### Exceptions
Text columns used by `attr_encrypted` are not required to have a limit, becuase the length of the
text after encryption may be longer than the text itself. Instead, you can use an Active Record
length validation on the attribute.
## Create a new table with text columns
When adding a new table, the limits for all text columns should be added in the same migration as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment