# ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: la columna categories.search\_priority no existe

**URL:** <https://meta.discourse.org/t/activerecord-pg-error-column-categories-search-priority-does-not-exist/111982>\
**Category:** Bug\
**Created:** [18 Marzo, 2019 23:42 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:** 14

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [19 Marzo, 2019 13:59 UTC](https://meta.discourse.org/t/activerecord-pg-error-column-categories-search-priority-does-not-exist/111982/14 "2019-03-19T13:59:11Z")

</div>

Adding the multisite:migrate line is part of the #howto for multisite setups

> [@Multisite configuration with Docker](https://meta.discourse.org/t/multisite-configuration-with-docker/14084):
>
> warning While multisite is supported in the Discourse application, this is an advanced sysadmin setup. If you don’t know what you’re doing, do not set up multisite. The Discourse team is unable to provide multisite configuration support. If you wish to host multiple domains on a singled Docker setup, you’ll need a multisite configuration. Here are the basic building blocks for one. Understand hooks Multisite is a fairly advanced topic. Before attempting a multisite build, spend some time…

> [@pfaffman](#):
>
> how your multisite databases get migrated

Using the multisite:migrate command as described in the #howto 😉

> [@pfaffman](#):
>
> I’m very confused how either these databases have been getting migrated

This is certainly surprising. I think you would be noticing issues if you hadn’t migrated for a whole year. If it was only a few weeks, then it might be possible to continue running on an old schema without too many errors. Have you modified one of the other templates to include multisite:migrate?

---

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