Add structured errors to schema
This commit is contained in:
3
app/models/error_template.rb
Normal file
3
app/models/error_template.rb
Normal file
@ -0,0 +1,3 @@
|
||||
class ErrorTemplate < ActiveRecord::Base
|
||||
belongs_to :execution_environment
|
||||
end
|
3
app/models/error_template_attribute.rb
Normal file
3
app/models/error_template_attribute.rb
Normal file
@ -0,0 +1,3 @@
|
||||
class ErrorTemplateAttribute < ActiveRecord::Base
|
||||
belongs_to :error_template
|
||||
end
|
4
app/models/structured_error.rb
Normal file
4
app/models/structured_error.rb
Normal file
@ -0,0 +1,4 @@
|
||||
class StructuredError < ActiveRecord::Base
|
||||
belongs_to :error_template
|
||||
belongs_to :file, class_name: 'CodeOcean::File'
|
||||
end
|
4
app/models/structured_error_attribute.rb
Normal file
4
app/models/structured_error_attribute.rb
Normal file
@ -0,0 +1,4 @@
|
||||
class StructuredErrorAttribute < ActiveRecord::Base
|
||||
belongs_to :structured_error
|
||||
belongs_to :error_template_attribute
|
||||
end
|
Reference in New Issue
Block a user