Specify file as optional for testruns

(no file is present for `run` but e.g. for `assess`)
This commit is contained in:
Sebastian Serth
2018-11-28 15:23:32 +01:00
parent 5d13ee0e56
commit 8381b4f1ba

View File

@ -1,4 +1,4 @@
class Testrun < ApplicationRecord
belongs_to :file, class_name: 'CodeOcean::File'
belongs_to :file, class_name: 'CodeOcean::File', optional: true
belongs_to :submission
end