Merge #2666 "Fix migration that fails on conferences without pictures"
This commit is contained in:
commit
86713f992e
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class RebuildConferencePictures < ActiveRecord::Migration[5.0]
|
class RebuildConferencePictures < ActiveRecord::Migration[5.0]
|
||||||
def up
|
def up
|
||||||
Conference.all.each do |conference|
|
Conference.where.not(picture: nil).each do |conference|
|
||||||
conference.picture.recreate_versions!
|
conference.picture.recreate_versions!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue