dev_local_2
parent
6bd122723a
commit
38ca342e4d
@ -1,7 +0,0 @@
|
||||
class ResortPortalImageData < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
PortalImage.order(position: :asc).each_with_index do |image, index|
|
||||
image.update!(position: index + 1)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue