# Rebuild fails on db:migrate "relation "form\_templates" already exists"

**URL:** <https://meta.discourse.org/t/rebuild-fails-on-db-migrate-relation-form-templates-already-exists/283421>\
**Category:** Self-hosting\
**Created:** [October 25, 2023, 3:09pm UTC](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-relation-form-templates-already-exists/283421 "2023-10-25T15:09:56Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 25, 2023, 6:57pm UTC](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-relation-form-templates-already-exists/283421/10 "2023-10-25T18:57:44Z")

</div>

> [@Aditya\_Patadia](#):
>
> we tried to restore to previous version by using “Rollback” on backup panel

The RDS backup panel? That’s probably where you went wrong.

> [@Aditya\_Patadia](#):
>
> We have most recent backup taken to S3 before we started any of this.

If restoring the most recent backup is OK, then I think I’d create a new database, update `app.yml` with the new database name, make sure that the S3 settings for the backup are in the yml file, rebuild, restore.

If you want to throw money at the problem you can contact me directly.

---

_[View the full topic](https://meta.discourse.org/t/rebuild-fails-on-db-migrate-relation-form-templates-already-exists/283421)._
