mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Merge pull request #2666 from AndrewKvalheim/fix-migration-carrierwave
Fix migration that fails on conferences without pictures
This commit is contained in:
commit
c29d45beea
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class RebuildConferencePictures < ActiveRecord::Migration[5.0]
|
||||
def up
|
||||
Conference.all.each do |conference|
|
||||
Conference.where.not(picture: nil).each do |conference|
|
||||
conference.picture.recreate_versions!
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue