Sha256: 5ae03e0c07275d78943423dde624ade5da3aeee344776c7696d05f90422a7b03

Contents?: true

Size: 655 Bytes

Versions: 13

Compression:

Stored size: 655 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

13 entries across 13 versions & 1 rubygems

Version Path
mobility-1.0.0.rc1 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-1.0.0.beta2 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-1.0.0.beta1 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-1.0.0.alpha lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.13 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.11 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.10 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.9 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.8 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.7 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.6 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.5 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.4 lib/rails/generators/mobility/templates/create_text_translations.rb