0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 13:59:03 +08:00
discourse/db/migrate/20250429083152_add_locale_to_post.rb
Natalie Tay 7d8a1df6cd
DEV: Add locale to post table (#32526)
Adding a `locale` column to the post table, so that we can localize
posts.
2025-04-30 16:35:32 +08:00

7 lines
158 B
Ruby
Vendored

# frozen_string_literal: true
class AddLocaleToPost < ActiveRecord::Migration[7.2]
def change
add_column :posts, :locale, :string, limit: 20
end
end