Skip to content

Rubocop to enforce length constraint to string columns

We should enforce database-side limits to any new text, string or other variable length fields. Let's create a rubocop to detect this and fail if no limit is present.

There should never be a situation where we create a variable length field without the ability to put a (maybe high, but that's also fine as it makes it clear what to expect) limit on it.

cc @gl-database

Development log

Edited by Dave Smith