2019-10-07 02:06:10 -04:00
|
|
|
# Issuable-like Rails models utilities
|
|
|
|
|
2019-11-21 10:06:17 -05:00
|
|
|
GitLab Rails codebase contains several models that hold common functionality and behave similarly to
|
|
|
|
[Issues](https://docs.gitlab.com/ee/user/project/issues/). Other examples of "issuables"
|
|
|
|
are [Merge Requests](https://docs.gitlab.com/ee/user/project/merge_requests/) and
|
|
|
|
[Epics](https://docs.gitlab.com/ee/user/group/epics/).
|
2019-10-07 02:06:10 -04:00
|
|
|
|
|
|
|
This guide accumulates guidelines on working with such Rails models.
|
|
|
|
|
|
|
|
## Important text fields
|
|
|
|
|
|
|
|
There are max length constraints for the most important text fields for `Issuable`s:
|
|
|
|
|
|
|
|
- `title`: 255 chars
|
|
|
|
- `title_html`: 800 chars
|
2019-10-15 20:06:16 -04:00
|
|
|
- `description`: 1 megabyte
|
|
|
|
- `description_html`: 5 megabytes
|