[openstreetmap/openstreetmap-website] Migrations don't run in CI with rails 8 (Issue #5847)
Andy Allan
notifications at github.com
Wed Mar 26 15:39:49 UTC 2025
gravitystorm created an issue (openstreetmap/openstreetmap-website#5847)
We have code to run the migrations in CI, mostly to make sure that when they run, they produce the same results as structure.sql
When we upgraded to Rails 8, however, these migrations no longer run. I believe it's because, if rails spots an empty database, it now ignores the migrations and just runs the structure - but I'm not yet certain on that.
Here's two CI runs to compare, [before](https://github.com/openstreetmap/openstreetmap-website/actions/runs/13957644201/job/39072542124) and [after](https://github.com/openstreetmap/openstreetmap-website/actions/runs/14069719853/job/39400815755) the rails 8 upgrade


We need to figure out how to make rails 8 actually run the migrations.
(This new behaviour also masked #5845 / #5846 from being detected by CI)
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5847
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5847 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250326/48fed75f/attachment-0001.htm>
More information about the rails-dev
mailing list