# UndefinedTable: ERROR: relation "web\_hook\_event\_types" when trying to run rspec test

**URL:** <https://meta.discourse.org/t/undefinedtable-error-relation-web-hook-event-types-when-trying-to-run-rspec-test/50497>\
**Category:** Development\
**Created:** [22 Settembre 2016, 4:03pm UTC](https://meta.discourse.org/t/undefinedtable-error-relation-web-hook-event-types-when-trying-to-run-rspec-test/50497 "2016-09-22T16:03:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [22 Settembre 2016, 4:16pm UTC](https://meta.discourse.org/t/undefinedtable-error-relation-web-hook-event-types-when-trying-to-run-rspec-test/50497/2 "2016-09-22T16:16:39Z")

</div>

You probably have to `RAILS_ENV=test rake db:migrate`

---

_[View the full topic](https://meta.discourse.org/t/undefinedtable-error-relation-web-hook-event-types-when-trying-to-run-rspec-test/50497)._
