mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
10 lines
285 B
Ruby
10 lines
285 B
Ruby
class MakeAdjustmentsPolymorphic < ActiveRecord::Migration
|
|
|
|
def change
|
|
add_column :spree_adjustments, :adjustable_type, :string
|
|
rename_column :spree_adjustments, :order_id, :adjustable_id
|
|
execute "UPDATE spree_adjustments SET adjustable_type = 'Spree::Order'"
|
|
end
|
|
|
|
end
|