Specify file as optional for testruns
(no file is present for `run` but e.g. for `assess`)
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
class Testrun < ApplicationRecord
|
class Testrun < ApplicationRecord
|
||||||
belongs_to :file, class_name: 'CodeOcean::File'
|
belongs_to :file, class_name: 'CodeOcean::File', optional: true
|
||||||
belongs_to :submission
|
belongs_to :submission
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user