Sha256: a3569235aba2e0042c305b912ec037c8ec64600759e6f606dfda0de82ce41c9c

Contents?: true

Size: 487 Bytes

Versions: 18

Compression:

Stored size: 487 Bytes

Contents

class AddProductDimensions < ActiveRecord::Migration
  def self.up
    change_table :variants do |t|
      t.decimal :weight, :precision => 8, :scale => 2
      t.decimal :height, :precision => 8, :scale => 2
      t.decimal :width, :precision => 8, :scale => 2
      t.decimal :depth, :precision => 8, :scale => 2
    end
  end

  def self.down
    change_table :variants do |t|
      t.remove :weight
      t.remove :height
      t.remove :width
      t.remove :depth
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 db/migrate/20081023134446_add_product_dimensions.rb
spree-enriquez-0.9.4 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.9.4 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.9.3 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.9.2 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.9.1 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.9.0 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.8.4 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.8.5 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.5.0 vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb
spree-0.5.1 vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb
spree-0.6.0 vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb
spree-0.7.1 vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb
spree-0.7.0 vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb
spree-0.8.0 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.8.1 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.8.2 db/migrate/20081023134446_add_product_dimensions.rb
spree-0.8.3 db/migrate/20081023134446_add_product_dimensions.rb