Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d7b65eed
Commit
d7b65eed
authored
Feb 02, 2021
by
Tiger
Committed by
Achilleas Pipinellis
Feb 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add exceptions to database text limit docs
parent
035285ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
doc/development/database/strings_and_the_text_data_type.md
doc/development/database/strings_and_the_text_data_type.md
+6
-0
No files found.
doc/development/database/strings_and_the_text_data_type.md
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment