A platform for community discussion. Free, open, simple.
DEV: Add locale for topics (#32619)
Natalie Tay6455e75da151
diff --git a/app/models/topic.rb b/app/models/topic.rbindex 0b8d0f80eab..188357cc050 100644--- a/app/models/topic.rb+++ b/app/models/topic.rb@@ -2233,6 +2233,7 @@ end# bannered_until :datetime# external_id :string# visibility_reason_id :integer+# locale :string(20)## Indexes#diff --git a/db/migrate/20250507110205_add_locale_to_topic.rb b/db/migrate/20250507110205_add_locale_to_topic.rbnew file mode 100644index 00000000000..08c552c8f95--- /dev/null+++ b/db/migrate/20250507110205_add_locale_to_topic.rb@@ -0,0 +1,7 @@+# frozen_string_literal: true++class AddLocaleToTopic < ActiveRecord::Migration[7.2]+ def change+ add_column :topics, :locale, :string, limit: 20+ end+end