A platform for community discussion. Free, open, simple.
DEV: Add locale column to categories (#32962)
Natalie Tay435088f62cf4
diff --git a/app/models/category.rb b/app/models/category.rbindex 171bc27c984..5c76d44d922 100644--- a/app/models/category.rb+++ b/app/models/category.rb@@ -1388,6 +1388,7 @@ end# style_type :integer default("square"), not null# emoji :string# icon :string+# locale :string(20)## Indexes#diff --git a/db/migrate/20250528030212_add_locale_to_categories.rb b/db/migrate/20250528030212_add_locale_to_categories.rbnew file mode 100644index 00000000000..51a7889adf2--- /dev/null+++ b/db/migrate/20250528030212_add_locale_to_categories.rb@@ -0,0 +1,7 @@+# frozen_string_literal: true++class AddLocaleToCategories < ActiveRecord::Migration[7.2]+ def change+ add_column :categories, :locale, :string, limit: 20+ end+end