2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-17 05:46:11 -06:00
|
|
|
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
|
2023-01-09 05:59:41 -06:00
|
|
|
t.index %i[theme_id locale translation_key],
|
|
|
|
unique: true,
|
|
|
|
name: "theme_translation_overrides_unique"
|
2019-01-17 05:46:11 -06:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|