mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-04 07:09:14 +00:00
12 lines
319 B
Ruby
12 lines
319 B
Ruby
class SetDefaultShipmentCost < ActiveRecord::Migration[4.2]
|
|
def up
|
|
change_column_null :spree_shipments, :cost, false, 0.0
|
|
change_column_default :spree_shipments, :cost, 0.0
|
|
end
|
|
|
|
def down
|
|
change_column_null :spree_shipments, :cost, true
|
|
change_column_default :spree_shipments, :cost, nil
|
|
end
|
|
end
|