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

Version Path
mobility-0.1.18 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.17 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.16 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.15 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.14 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.13 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.12 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.11 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.10 lib/generators/rails/mobility/templates/create_text_translations.rb
mobility-0.1.7 lib/generators/rails/mobility/templates/create_text_translations.rb