Enforce column limits via concern

SQLite columns lengths are purely informational, so we'll enforce the
limits via a concern that checks the lengths from the schema.
This commit is contained in:
Donal McBreen
2025-11-25 15:29:42 +00:00
parent 67f648f356
commit 97bcdf1853
5 changed files with 134 additions and 15 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ ActiveRecord::Schema[8.2].define(version: 2025_11_21_112416) do
create_table "action_text_rich_texts", id: :uuid, force: :cascade do |t|
t.uuid "account_id", null: false
t.text "body", limit: 65535
t.text "body", limit: 4294967295
t.datetime "created_at", null: false
t.string "name", limit: 255, null: false
t.uuid "record_id", null: false