From dc723bca62f02542951184e3d0eeb72360b4bfec Mon Sep 17 00:00:00 2001 From: Daniele Palombo <387690+DanielePalombo@users.noreply.github.com> Date: Tue, 19 Dec 2023 12:05:57 +0100 Subject: [PATCH] Fix down migration ``` bin/rails db:rollback fails with ``` Caused by: ArgumentError: wrong number of arguments (given 2, expected 3) ``` This commit is fixing the rollback --- .../20230427095534_drop_deprecated_address_id_from_shipments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db/migrate/20230427095534_drop_deprecated_address_id_from_shipments.rb b/core/db/migrate/20230427095534_drop_deprecated_address_id_from_shipments.rb index db3e42e7d89..3849a4e2708 100644 --- a/core/db/migrate/20230427095534_drop_deprecated_address_id_from_shipments.rb +++ b/core/db/migrate/20230427095534_drop_deprecated_address_id_from_shipments.rb @@ -5,7 +5,7 @@ def up end def down - add_column :spree_shipments, :deprecated_address_id + add_column :spree_shipments, :deprecated_address_id, :integer add_index :spree_shipments, :deprecated_address_id, name: :index_spree_shipments_on_deprecated_address_id end end