ontology_version.rb revision 87107747f8a51d0f07c2e2a415fcf9c494783f0f
cbb18f95cb8354f0c3fb44ba5134dadc7ad6b2ecJulian Kornberger belongs_to :ontology, :counter_cache => :versions_count
bafdf16599e50320117ec8630e771b47ebab2219henning mueller validates :raw_file, file_size: { maximum: 10.megabytes.to_i }
87107747f8a51d0f07c2e2a415fcf9c494783f0fhenning mueller# validate :raw_file_xor_source_uri
87107747f8a51d0f07c2e2a415fcf9c494783f0fhenning mueller errors.add :source_uri, 'Specify either a source file or URI.'