Sha256: dbd6d13a377c31b22cf53d368d4430ab43c759761f6a48044fafe089ff1a89ad
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
class AddDimensionsToProductTypes < ActiveRecord::Migration def change unless column_exists? :product_types, :length add_column :product_types, :length, :decimal add_column :product_types, :width, :decimal add_column :product_types, :height, :decimal add_column :product_types, :weight, :decimal add_column :product_types, :cylindrical, :boolean remove_column :product_types, :shipping_cost end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_products-4.2.0 | db/migrate/20150507075057_add_dimensions_to_product_types.rb |