# Error when running plugin specs

**URL:** https://meta.discourse.org/t/error-when-running-plugin-specs/274701
**Category:** Development
**Created:** [August 10, 2023, 6:04pm UTC](https://meta.discourse.org/t/error-when-running-plugin-specs/274701 "2023-08-10T18:04:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 10, 2023, 6:16pm UTC](https://meta.discourse.org/t/error-when-running-plugin-specs/274701/2 "2023-08-10T18:16:51Z")

</div>

Looking at the test database, the chat migrations appear not to have run.

```plaintext
> psql discourse_test 

# \d

```

Oh …!

I forgot to add the first environment variable to include plugins with this db migration (because chat is still a plugin):

```plaintext
LOAD_PLUGINS=1 RAILS_ENV=test rake db:migrate

```

---

_[View the full topic](https://meta.discourse.org/t/error-when-running-plugin-specs/274701)._
