Sha256: 4137ed10f7b75a51f819933f7674bb17e0f18ae1e4c148abd790de83d9224042
Contents?: true
Size: 654 Bytes
Versions: 28
Compression:
Stored size: 654 Bytes
Contents
class CreateTextTranslations < <%= activerecord_migration_class %> 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
Version data entries
28 entries across 28 versions & 1 rubygems