This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| community_ids = [247, 14, 1, 13, 8, 4, 7] | |
| query = Comment.where( | |
| context_type: 'Community', context_id: community_ids | |
| ).where.not( | |
| commentable_id: nil, commentable_type: nil | |
| ).select(:id, :commentable_id, :commentable_type, :context_id, :context_type) | |
| .includes(:commentable, :context) | |
| mismatches = query.find_each.with_object([]) do |comment, mismatches| | |
| next if comment.commentable.blank? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.16 | |
| USER root | |
| ENV INITSYSTEM on | |
| ENV UDEV=1 | |
| ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket | |
| ENV BUNDLER_VERSION=2.4.12 | |
| ENV NODE_VERSION=14.20.0 | |
| ENV YARN_VERSION=1.22.17 |
OlderNewer