Sha256: 052ef077d2e84c53cb36900747440f7fbb5ec9d231648a5014c81f0b5836fc34

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

class AddShippingCostToProductTypes < ActiveRecord::Migration
  def change
    unless column_exists? :product_types, :shipping_cost
      add_column :product_types, :shipping_cost, :decimal, :precision => 8, :scale => 2 unless column_exists?(: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/20150304211841_add_shipping_cost_to_product_types.rb