Skip to content

Instantly share code, notes, and snippets.

View brateq's full-sized avatar

Bartek Fijałkowski brateq

View GitHub Profile
@brateq
brateq / gist:376b2135b4ef279a2eedf4c87cda4e93
Created August 3, 2020 11:55
Query for records with Active Storage attachment checksum
User.joins(:image_blob).where(active_storage_blobs: { checksum: 'oWPoAOg89F+8FLgcXpiJtQ==' })