# Topic Voting Plugin - UndefinedTable Exception

**URL:** https://meta.discourse.org/t/topic-voting-plugin-undefinedtable-exception/335878
**Category:** Development
**Tags:** topic-voting
**Created:** [November 13, 2024, 2:24am UTC](https://meta.discourse.org/t/topic-voting-plugin-undefinedtable-exception/335878 "2024-11-13T02:24:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SkyeDragon](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@SkyeDragon](https://meta.discourse.org/u/SkyeDragon)
#### Post date: [November 13, 2024, 2:24am UTC](https://meta.discourse.org/t/topic-voting-plugin-undefinedtable-exception/335878/1 "2024-11-13T02:24:11Z")

</div>

Hello,

I tried to install the [topic voting plugin](https://github.com/discourse/discourse-topic-voting), but got the following exception upon loading a page:

```plaintext
ActiveRecord::StatementInvalid in ListController#latest
PG::UndefinedTable: ERROR: relation "topic_voting_votes" does not exist LINE 10: WHERE a.attrelid = '"topic_voting_votes"'::regclass ^

```

Is there some process that must be done to create the tables? (All I did was clone the plugin into a subfolder of the plugins directory, no other setup steps were taken other than a restart)

**Update - Resolved** : I wasn’t aware of this, but when installing plugins on a development site, you need to manually run:

```plaintext
bin/rails db:migrate

```

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 2, 2025, 1:07pm UTC](https://meta.discourse.org/t/topic-voting-plugin-undefinedtable-exception/335878/2 "2025-12-02T13:07:18Z")

</div>


