Sha256: 7e969c3b7378abce5e46bcbcbfc4b721e76cbab63430564d357eaafff231f645

Contents?: true

Size: 653 Bytes

Versions: 2

Compression:

Stored size: 653 Bytes

Contents

class CreateStringTranslations < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]

  def change
    create_table :mobility_string_translations do |t|
      t.string  :locale
      t.string  :key
      t.string  :value
      t.integer :translatable_id
      t.string  :translatable_type
      t.timestamps
    end
    add_index :mobility_string_translations, [:translatable_id, :translatable_type, :locale, :key], unique: true, name: :index_mobility_string_translations_on_keys
    add_index :mobility_string_translations, [:translatable_id, :translatable_type], name: :index_mobility_string_translations_on_translatable
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mobility-0.1.6 lib/generators/mobility/templates/create_string_translations.rb
mobility-0.1.5 lib/generators/mobility/templates/create_string_translations.rb