Sha256: 64610ba82469464d94e8e0bd723bebd7d1f49b926f3d4f752d1b2bff98049048
Contents?: true
Size: 657 Bytes
Versions: 10
Compression:
Stored size: 657 Bytes
Contents
class CreateTextTranslations < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] 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
10 entries across 10 versions & 1 rubygems