Commit 24083e6697fcd3c3faba908d5d42ffa40e7369a2

Authored by Aurélio Heckert
1 parent e50ba061

Add migration to generate missed thumbnails

db/migrate/20160309120350_generate_missed_thumbnails.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +class GenerateMissedThumbnails < ActiveRecord::Migration
  2 + def up
  3 + UploadedFile.find_each {|f| f.create_thumbnails if f.thumbnails.empty? }
  4 + end
  5 +end
... ...