Sha256: d5d88f229e737d14d9c7a973d6bcaacbef513c5099936e3e265d854b8e759b55
Contents?: true
Size: 516 Bytes
Versions: 6
Compression:
Stored size: 516 Bytes
Contents
class CreateShoppeStockLevelAdjustments < ActiveRecord::Migration def up create_table :shoppe_stock_level_adjustments do |t| t.integer :product_id t.string :description t.integer :adjustment, :default => 0 t.string :parent_type t.integer :parent_id t.timestamps end remove_column :shoppe_products, :stock end def down drop_table :shoppe_stock_level_adjustments add_column :shoppe_products, :stock, :integer, :default => 0, :before => :weight end end
Version data entries
6 entries across 6 versions & 1 rubygems