Sha256: 8799d23d4956aec533d9f97ffb6f9497ec05689e0fb1f53e244f85fc9f17f777

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

class CreateProductTranslations < ActiveRecord::Migration
  def change
    create_table :product_translations do |t|
      t.integer :product_id
      t.string :locale
      t.string :name

      t.timestamps null: false
    end
    add_index :product_translations, [:product_id, :locale], unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
translatable_records-4.0.0.1 test/dummy/db/migrate/20161205171056_create_product_translations.rb
translatable_records-4.0.0.0 test/dummy/db/migrate/20161205171056_create_product_translations.rb