Sha256: 966f6af8d745e501277f33f641cfaaa14fb5308a95bc5d807b213e1d6085f473
Contents?: true
Size: 621 Bytes
Versions: 19
Compression:
Stored size: 621 Bytes
Contents
class CreateTextTranslations < <%= activerecord_migration_class %> def change create_table :mobility_text_translations do |t| t.string :locale t.string :key t.text :value t.integer :translatable_id t.string :translatable_type t.timestamps 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
Version data entries
19 entries across 19 versions & 1 rubygems