Skip to content

Commit

Permalink
Fix down migration
Browse files Browse the repository at this point in the history
```
bin/rails db:rollback

fails with

```
Caused by:
ArgumentError: wrong number of arguments (given 2, expected 3)
```
This commit is fixing the rollback
  • Loading branch information
DanielePalombo committed Dec 19, 2023
1 parent 9b18f09 commit dc723bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dc723bc

Please sign in to comment.