# AI Plugin Build Error - 'bundle exec rake db:migrate' failed

**URL:** <https://meta.discourse.org/t/ai-plugin-build-error-bundle-exec-rake-db-migrate-failed/288104>\
**Category:** Self-hosting\
**Tags:** ai\
**Created:** [December 10, 2023, 12:05am UTC](https://meta.discourse.org/t/ai-plugin-build-error-bundle-exec-rake-db-migrate-failed/288104 "2023-12-10T00:05:17Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dfriestedt](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@dfriestedt](https://meta.discourse.org/u/dfriestedt)\
**Post date:** [December 13, 2023, 2:08am UTC](https://meta.discourse.org/t/ai-plugin-build-error-bundle-exec-rake-db-migrate-failed/288104/10 "2023-12-13T02:08:17Z")

</div>

That’s interesting. I do not have that set. Not sure how I missed that. I will make that adjustment and rebuilt it tomorrow AM.

Update: Adding this `DISCOURSE_S3_INSTALL_CORS_RULE: false` solved the problem.

Thank you

---

_[View the full topic](https://meta.discourse.org/t/ai-plugin-build-error-bundle-exec-rake-db-migrate-failed/288104)._
