Skip to content

Commit

Permalink
Remove deprecated_address_id column from shipments
Browse files Browse the repository at this point in the history
We have not used this column since we removed all references to it in
2016.

It was reverted on 039f3ce because of
being backward incompatible. We re-add it now targeting next major
(v4.0).
  • Loading branch information
mamhoff authored and waiting-for-dev committed Apr 27, 2023
1 parent 39e8e46 commit f8bd900
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class DropDeprecatedAddressIdFromShipments < ActiveRecord::Migration[5.2]
def up
remove_index :spree_shipments, column: [:deprecated_address_id], name: :index_spree_shipments_on_deprecated_address_id
remove_column :spree_shipments, :deprecated_address_id
end

def down
add_column :spree_shipments, :deprecated_address_id
add_index :spree_shipments, :deprecated_address_id, name: :index_spree_shipments_on_deprecated_address_id
end
end

0 comments on commit f8bd900

Please sign in to comment.