diff options
Diffstat (limited to 'app/models/file_validation.rb')
| -rw-r--r-- | app/models/file_validation.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/file_validation.rb b/app/models/file_validation.rb index 30569a092..a4c76ebf0 100644 --- a/app/models/file_validation.rb +++ b/app/models/file_validation.rb @@ -6,6 +6,9 @@ class FileValidation < ActiveRecord::Base attr_accessor :resources,:uncheck_count,:ok_count,:warning_count,:error_count,:fatal_count,:log_message_tree attr_accessor :validator + belongs_to :organisation + validates_presence_of :organisation + has_many :log_messages, :class_name => "FileValidationLogMessage", :order => :position, :dependent => :destroy serialize :options |
