# Development install fails when running bin/rails db:migrate

**URL:** <https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754>\
**Category:** Self-hosting\
**Tags:** dev-install\
**Created:** [October 25, 2024, 10:08am UTC](https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754 "2024-10-25T10:08:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)\
**Post date:** [October 25, 2024, 10:22am UTC](https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754/4 "2024-10-25T10:22:34Z")

</div>

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.

---

_[View the full topic](https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754)._
