Sha256: 50cbebf1e7d9e217fe0f10471f4e002fe19d97c8e15709581475fd57fa8c4670

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

class CreateCategoriesProducts < ActiveRecord::Migration
  def change
    create_table :kms_categories_products, id: false do |t|
      t.integer :category_id
      t.integer :product_id
    end

    add_index :kms_categories_products, :category_id
    add_index :kms_categories_products, :product_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kms_catalog-0.5.0 db/migrate/20141114090047_create_categories_products.rb
kms_catalog-0.4.0 db/migrate/20141114090047_create_categories_products.rb