# Error running bin/rails db

**URL:** https://meta.discourse.org/t/bin-rails-db/393531
**Category:** Support
**Created:** [January 15, 2026, 12:12pm UTC](https://meta.discourse.org/t/bin-rails-db/393531 "2026-01-15T12:12:23Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![sniper756](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sniper756/32/545002_2.png) [@sniper756](https://meta.discourse.org/u/sniper756)
#### Post date: [January 15, 2026, 2:55pm UTC](https://meta.discourse.org/t/bin-rails-db/393531/10 "2026-01-15T14:55:22Z")

</div>

I cannot access the database using the method described by zogstrip

> [@Migration error in 'rename\_discourse\_rewind\_disabled\_to\_enabled'](https://meta.discourse.org/t/migration-error-in-rename-discourse-rewind-disabled-to-enabled/393049/22?u=sniper756):
>
> When inside the container, as the discourse user, at the root of the discourse directory, you can run bin/rails db to connect to the right db.

---

_[View the full topic](https://meta.discourse.org/t/bin-rails-db/393531)._
