Sha256: 3c1783b8d68dcc394c453c0804c8b3876fbbc354c7a656806fa835314c475453

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

class AddManyToManyRelationToProducts < ActiveRecord::Migration
  def self.up
    create_table :assemblies_parts, :id => false do |t|
      t.integer "assembly_id", :null => false
      t.integer "part_id", :null => false
      t.integer "count", :null => false, :default => 1
    end
  end

  def self.down
    drop_table :assemblies_parts
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
solidus_product_bundle-1.0.1 db/migrate/20091028152124_add_many_to_many_relation_to_products.rb
solidus_product_bundle-1.0.0 db/migrate/20091028152124_add_many_to_many_relation_to_products.rb
solidus_product_assembly-1.0.0 db/migrate/20091028152124_add_many_to_many_relation_to_products.rb
spree_product_assembly-0.60.0 lib/generators/templates/db/migrate/20091028152124_add_many_to_many_relation_to_products.rb