Sha256: c287f51f56180bc911f2d26b87a4bfe6d7c6eb20beeb50b955ed1c05aef5637e
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
class CreateAttributeValuesProducts < ActiveRecord::Migration def self.up create_table :attribute_values_products, :id => false do |t| t.belongs_to :attribute_value, :product end add_index :attribute_values_products, [:attribute_value_id, :product_id], :unique => true, :name => 'a_v_p_association' end def self.down remove_index :attribute_values_products, :name => 'a_v_p_association' drop_table :attribute_values_products end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_commerce-1.9.1.rc1 | db/migrate/20091009134440_create_attribute_values_products.rb |
forgeos_commerce-1.9.0 | db/migrate/20091009134440_create_attribute_values_products.rb |