Merge pull request #3813 from luisramos0/3803-on-demand-default

Make stock locations backorderable_default false
This commit is contained in:
Pau Pérez Fabregat
2019-05-07 09:16:34 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class UpdateStockLocationsBackorderableDefault < ActiveRecord::Migration
def change
Spree::StockLocation.update_all(backorderable_default: false)
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20190501143327) do
ActiveRecord::Schema.define(:version => 20190506194625) do
create_table "adjustment_metadata", :force => true do |t|
t.integer "adjustment_id"