diff --git a/db/migrate/07_dmsf_1_4_4.rb b/db/migrate/07_dmsf_1_4_4.rb index 9abe7166..af6c8396 100644 --- a/db/migrate/07_dmsf_1_4_4.rb +++ b/db/migrate/07_dmsf_1_4_4.rb @@ -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)