Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add locale to post table (#32526)

Natalie Tay7d8a1df6cd25
diff --git a/app/models/post.rb b/app/models/post.rb
index 24f585d2eee..5a24c48637f 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -1404,6 +1404,7 @@ end
# locked_by_id :integer
# image_upload_id :bigint
# outbound_message_id :string
+# locale :string(20)
#
# Indexes
#
diff --git a/db/migrate/20250429083152_add_locale_to_post.rb b/db/migrate/20250429083152_add_locale_to_post.rb
new file mode 100644
index 00000000000..e465dbf2c85
--- /dev/null
+++ b/db/migrate/20250429083152_add_locale_to_post.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddLocaleToPost < ActiveRecord::Migration[7.2]
+ def change
+ add_column :posts, :locale, :string, limit: 20
+ end
+end