Add stock group order

This allows us to add additional items to an order, which do not belong
a specific user, but will be put into stock. The benefit of this change
is that we use the same order for ordergroups and stock.
This commit is contained in:
Patrick Gansterer 2016-02-25 02:27:17 +01:00 committed by wvengen
parent b56df39623
commit 9c4d9d5c20
8 changed files with 42 additions and 11 deletions

View file

@ -0,0 +1,9 @@
class AllowStockGroupOrder < ActiveRecord::Migration
def self.up
change_column :group_orders, :ordergroup_id, :integer, :default => nil, :null => true
end
def self.down
change_column :group_orders, :ordergroup_id, :integer, :default => 0, :null => false
end
end