# This migration comes from spree (originally 20121017010007)
class RemoveNotNullConstraintFromProductsOnHand < ActiveRecord::Migration
  def up
    change_column :spree_products, :count_on_hand, :integer, :null => true
    change_column :spree_variants, :count_on_hand, :integer, :null => true
  end

  def down
    change_column :spree_products, :count_on_hand, :integer, :null => false
    change_column :spree_variants, :count_on_hand, :integer, :null => false
  end
end
