cirandas.net

ref: master

db/migrate/20160309120350_generate_missed_thumbnails.rb


1
2
3
4
5
class GenerateMissedThumbnails < ActiveRecord::Migration
  def up
    #UploadedFile.find_each {|f| f.create_thumbnails if f.thumbnails.empty? }
  end
end