A platform for community discussion. Free, open, simple.
DEV: Add locale to tags (#35979)
Natalie Tay3abbe33018a5
diff --git a/app/models/tag.rb b/app/models/tag.rbindex ba78b629f2e..e313f7966ac 100644--- a/app/models/tag.rb+++ b/app/models/tag.rb@@ -279,6 +279,7 @@ end# Table name: tags## id :integer not null, primary key+# locale :string(20)# name :string not null# created_at :datetime not null# updated_at :datetime not nulldiff --git a/db/migrate/20251111091231_add_locale_to_tags.rb b/db/migrate/20251111091231_add_locale_to_tags.rbnew file mode 100644index 00000000000..39844fb82a2--- /dev/null+++ b/db/migrate/20251111091231_add_locale_to_tags.rb@@ -0,0 +1,7 @@+# frozen_string_literal: true++class AddLocaleToTags < ActiveRecord::Migration[8.0]+ def change+ add_column :tags, :locale, :string, limit: 20+ end+end