# ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column categories.search\_priority does not exist

**URL:** <https://meta.discourse.org/t/activerecord-pg-error-column-categories-search-priority-does-not-exist/111982>\
**Category:** Bug\
**Created:** [March 18, 2019, 11:42pm UTC](https://meta.discourse.org/t/activerecord-pg-error-column-categories-search-priority-does-not-exist/111982 "2019-03-18T23:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 19, 2019, 12:15am UTC](https://meta.discourse.org/t/activerecord-pg-error-column-categories-search-priority-does-not-exist/111982/5 "2019-03-19T00:15:53Z")

</div>

@sam changes where addressing the specific cases that you reported, but the way it’s setup it will always blow when a migrations adds a column.

@riking adresses that on the last post there:

[https://meta.discourse.org/t/multisite-builds-are-currently-broken-under-new-native-theme-changes/60865/15?u=falco](https://meta.discourse.org/t/multisite-builds-are-currently-broken-under-new-native-theme-changes/60865/15)

Not sure if his suggestion is the more appropriate one, or if we should add another hook for a multisite template to use.

---

_[View the full topic](https://meta.discourse.org/t/activerecord-pg-error-column-categories-search-priority-does-not-exist/111982)._
