diff --git a/lib/tasks/loader.rake b/lib/tasks/loader.rake index 88e92b5e..7faef738 100644 --- a/lib/tasks/loader.rake +++ b/lib/tasks/loader.rake @@ -66,7 +66,7 @@ task :load_instrument_references, [:path] => [:environment] do |t, args| if q.nil? || instruction.nil? raise 'One of q or instruction could not be found' else - q.association(:instruction).writer instruction + q.instruction_id = instruction.id q.save! end rescue => e