The duplicate_url_reporter.rb was not updated to reflect changes made to the ORM mappings between pid.rb and duplicate_url.rb. The relationship of the foreign key between the two entities was changed. The old structure had the duplicate_url_id on pid as a foreign key relationship. This was updated so that the duplicate_url now has a pid_id foreign key.
The offending code is:
pid.mutable = true
pid.duplicate_url_report = DuplicateUrlReport.new(:other_pids => pids.join(', '), :last_checked => Time.now)
pid.save
pid.mutable = false
It should probably be updated to:
dur = DuplicateUrlReport.new(:pid => pid, :other_pids => pids.join(', '), :last_checked => Time.now)
dur.save