A keying mistake

This commit is contained in:
Karel Picman 2017-06-21 15:54:18 +02:00
parent 01eca4df11
commit 99e43e2d45

View File

@ -142,7 +142,7 @@ class Dmsf144 < ActiveRecord::Migration
DmsfFileRevision.visible.each {|rev|
next if rev.project.nil?
project = rev.project.identifier.gsub(/[^\w\.\-]/,'_')
existing = DmsfFile.storage_path.jopin("p_#{project}/#{rev.disk_filename}")
existing = DmsfFile.storage_path.join("p_#{project}/#{rev.disk_filename}")
new_path = DmsfFile.storage_path.join(rev.disk_filename)
if File.exist?(existing)
if File.exist?(new_path)