Sha256: fe6e4f766a541aceed7037be7eca087aeb4209a09551c9729504bf3fec0d79fa

Contents?: true

Size: 281 Bytes

Versions: 8

Compression:

Stored size: 281 Bytes

Contents

class CreateProductAttributes < ActiveRecord::Migration
  def self.up
    create_table :product_attributes do |t|
      t.references :product
      t.string :name
      t.string :value

      t.timestamps
    end
  end

  def self.down
    drop_table :product_attributes
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
has_eav-1.2.0 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.1.5 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.1.4 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.1.2 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.1.1 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.1.0 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.0.1 test/db/migrate/20101210102347_create_product_attributes.rb
has_eav-1.0.0 test/db/migrate/20101210102347_create_product_attributes.rb