mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 23:28:02 -05:00
10 lines
262 B
Ruby
10 lines
262 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FixPendingProfilePhotos < ActiveRecord::Migration[5.1]
|
|
def up
|
|
Photo.where(pending: true).each do |photo|
|
|
photo.update(pending: false) if Profile.where(image_url: photo.url(:thumb_large)).exists?
|
|
end
|
|
end
|
|
end
|