Sha256: 11433d7a2d938e0fd0e54b7d5c176ed88a087a1f70da379a62396b2d4a822361

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

class CreateAttributeValues < ActiveRecord::Migration
  def self.up
    create_table :attribute_values do |t|
      t.belongs_to :attribute
      t.integer :position
      t.timestamps
    end
    AttributeValue.create_translation_table!(:value=>:string)
  end

  def self.down
    AttributeValue.drop_translation_table!
    drop_table :attribute_values
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 db/migrate/20091009134433_create_attribute_values.rb
forgeos_commerce-1.9.0 db/migrate/20091009134433_create_attribute_values.rb