discourse/db/migrate/20181221121805_create_theme_translation_override.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
542 B
Ruby
Raw Normal View History

# 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 %i[theme_id locale translation_key],
unique: true,
name: "theme_translation_overrides_unique"
end
end
end