# Сборка образа без обращения к базе данных

**URL:** <https://meta.discourse.org/t/building-the-image-without-touching-the-database/171454>\
**Category:** Self-hosting\
**Created:** [27.Ноябрь.2020 00:33:22 UTC](https://meta.discourse.org/t/building-the-image-without-touching-the-database/171454 "2020-11-27T00:33:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pschichtel](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pschichtel](https://meta.discourse.org/u/pschichtel)\
**Post date:** [14.Август.2023 00:15:48 UTC](https://meta.discourse.org/t/building-the-image-without-touching-the-database/171454/7 "2023-08-14T00:15:48Z")

</div>

> [@Simon King](#):
>
> `SKIP_POST_DEPLOYMENT_MIGRATIONS`

Кажется, это наконец-то сломалось. При обновлении с версии 3.0.6 до 3.1.0 миграции базы данных не выполнялись. Однако запуск финальной команды `bundle exec rake db:migrate` внутри работающего контейнера сработал, но только после перезапуска контейнера.

---

_[View the full topic](https://meta.discourse.org/t/building-the-image-without-touching-the-database/171454)._
