[openstreetmap/openstreetmap-website] Backfill block deactivates_at (PR #5106)

Anton Khorev notifications at github.com
Thu Aug 22 12:52:56 UTC 2024


Continues #5069.

I wrote it [like strong_migrations wants](https://github.com/ankane/strong_migrations?tab=readme-ov-file#backfilling-data).

After the backfilling is done this should be empty:

    SELECT * FROM user_blocks WHERE needs_view = (deactivates_at IS NOT NULL);

A block either needs view or has a deactivation date.

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5106

-- Commit Summary --

  * Backfill block deactivates_at

-- File Changes --

    A db/migrate/20240822121603_backfill_deactivates_at_in_user_blocks.rb (12)
    M db/structure.sql (1)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5106.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5106.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5106
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5106 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240822/f7a93a40/attachment-0001.htm>


More information about the rails-dev mailing list