Sha256: 741427edde8082937709ef0fe362e0304c84bd5bd78a6c866141e8fd15af502d

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

class CreateProductOptionTypes < ActiveRecord::Migration
  def change
    create_table :kms_product_option_types do |t|
      t.references :product, index: true
      t.references :option_type, index: true

      t.timestamps null: false
    end
    add_foreign_key :kms_product_option_types, :products if respond_to?(:add_foreign_key)
    add_foreign_key :kms_product_option_types, :option_types if respond_to?(:add_foreign_key)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kms_catalog-0.5.0 db/migrate/20150213084605_create_product_option_types.rb
kms_catalog-0.4.0 db/migrate/20150213084605_create_product_option_types.rb