mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 14:33:43 +08:00
13 lines
390 B
Ruby
13 lines
390 B
Ruby
class CreateTranslationOverrides < ActiveRecord::Migration
|
|
def change
|
|
create_table :translation_overrides, force: true do |t|
|
|
t.string :locale, length: 30, null: false
|
|
t.string :translation_key, null: false
|
|
t.string :value, null: false
|
|
t.timestamps null: false
|
|
end
|
|
|
|
add_index :translation_overrides, [:locale, :translation_key], unique: true
|
|
end
|
|
end
|