foodsoft/db/migrate/20160224201529_allow_stock_group_order.rb
Patrick Gansterer 9c4d9d5c20 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.
2016-03-11 13:15:16 +01:00

9 lines
279 B
Ruby

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