mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:56:50 +08:00
30990006a9
This reduces chances of errors where consumers of strings mutate inputs and reduces memory usage of the app. Test suite passes now, but there may be some stuff left, so we will run a few sites on a branch prior to merging
17 lines
517 B
Ruby
17 lines
517 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateThemeTranslationOverride < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :theme_translation_overrides do |t|
|
|
t.integer :theme_id, null: false
|
|
t.string :locale, length: 30, null: false
|
|
t.string :translation_key, null: false
|
|
t.string :value, null: false
|
|
t.timestamps null: false
|
|
|
|
t.index :theme_id
|
|
t.index [:theme_id, :locale, :translation_key], unique: true, name: 'theme_translation_overrides_unique'
|
|
end
|
|
end
|
|
end
|