Sha256: 548392999bf3647cc96f41a3ab6d9cad36d2dd429f0cbd6caa860c1cb1319fbd

Contents?: true

Size: 729 Bytes

Versions: 12

Compression:

Stored size: 729 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.integer :translatable_id,   null: false
      t.string  :translatable_type, null: 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

12 entries across 12 versions & 1 rubygems

Version Path
mobility-0.8.3 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.2 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.1 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.8.0 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.6 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.5 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.4 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.3 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.2 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.1 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.7.0 lib/rails/generators/mobility/templates/create_text_translations.rb
mobility-0.6.0 lib/rails/generators/mobility/templates/create_text_translations.rb