mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +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
|