Sha256: 872a346e2c9ba8c9360e1823eec5d1b4fd4126439b87f67019f31acfbcfaf99c

Contents?: true

Size: 593 Bytes

Versions: 5

Compression:

Stored size: 593 Bytes

Contents

class CreateTextTranslations < ActiveRecord::Migration

  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], name: :index_mobility_text_translations_on_translatable
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mobility-0.1.4 lib/generators/mobility/templates/create_text_translations.rb
mobility-0.1.3 lib/generators/mobility/templates/create_text_translations.rb
mobility-0.1.2 lib/generators/mobility/templates/create_text_translations.rb
mobility-0.1.1 lib/generators/mobility/templates/create_text_translations.rb
mobility-0.1.0 lib/generators/mobility/templates/create_text_translations.rb