# 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:** 9

<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:53pm UTC](https://meta.discourse.org/t/bin-rails-db/393531/9 "2026-01-15T14:53:39Z")

</div>

Query information in the postgres database.

Provide feedback for the following post

> [@Migration error in 'rename\_discourse\_rewind\_disabled\_to\_enabled'](https://meta.discourse.org/t/migration-error-in-rename-discourse-rewind-disabled-to-enabled/393049/19?u=sniper756):
>
> @here for those who are having issues, I think @david and I may have found the root cause but [it’s complicated](https://github.com/discourse/discourse/pull/37037) to reproduce locally. Could any of you run the following SQL queries and report the results here? Query #1 SELECT table\_schema, column\_name, column\_default FROM information\_schema.columns WHERE table\_name = 'user\_options' AND column\_name = 'discourse\_rewind\_disabled' ORDER BY table\_schema; Query #2 SELECT n.nspname, n.oid FROM pg\_namespace n JOIN pg\_class c ON c.relnamespace = n.o…

---

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