initial rebuild from v1
This commit is contained in:
13
db/migrate/20210422160150_create_text_translations.rb
Normal file
13
db/migrate/20210422160150_create_text_translations.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateTextTranslations < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :mobility_text_translations do |t|
|
||||
t.string :locale, null: false
|
||||
t.string :key, null: false
|
||||
t.text :value
|
||||
t.references :translatable, polymorphic: true, index: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_index :mobility_text_translations, [:translatable_id, :translatable_type, :locale, :key], unique: true, name: :index_mobility_text_translations_on_keys
|
||||
add_index :mobility_text_translations, [:translatable_id, :translatable_type, :key], name: :index_mobility_text_translations_on_translatable_attribute
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user