Sha256: adad813df5ecde2f246d2556b5118be98e4383cfd936f1205def56a2167eaebe

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

# This migration comes from spree (originally 20121017010007)
class RemoveNotNullConstraintFromProductsOnHand < ActiveRecord::Migration[4.2]
  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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195718_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091659_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091659_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb