Development install fails when running bin/rails db:migrate

Open the Rails console and inspect the uploads table to verify ID = -6 is missing:

RAILS_ENV=test bin/rails console
Upload.find_by(id: -6)

The error indicates that the record with ID = -6 has been deleted. You’ll need to update the seed data or fixtures accordingly in your test environment.

1 Like