From a3e12015528a10c32672abfd49c0edb287711a23 Mon Sep 17 00:00:00 2001 From: Matthias Viehweger Date: Mon, 6 May 2024 16:08:40 +0200 Subject: [PATCH] Shorten the label-columns to not blow the row-limit again --- db/migrate/20221124094837_add_address_labels_to_people.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20221124094837_add_address_labels_to_people.rb b/db/migrate/20221124094837_add_address_labels_to_people.rb index 07484601..2775475a 100644 --- a/db/migrate/20221124094837_add_address_labels_to_people.rb +++ b/db/migrate/20221124094837_add_address_labels_to_people.rb @@ -12,7 +12,7 @@ class AddAddressLabelsToPeople < ActiveRecord::Migration[6.1] billing_course).freeze def change ADDRESS_TYPES.each do |concern| - add_column :people, "#{concern}_label", :string + add_column :people, "#{concern}_label", :string, limit: 20 # was 255, the varchar-default end end end