notebook/app/models/documents/document_analysis.rb
2019-06-03 20:21:01 -05:00

13 lines
360 B
Ruby

class DocumentAnalysis < ApplicationRecord
belongs_to :document
has_many :document_entities, dependent: :destroy
has_many :document_concepts, dependent: :destroy
has_many :document_categories, dependent: :destroy
serialize :words_per_sentence, Array
serialize :n_syllable_words, Hash
def complete?
self.completed_at.present?
end
end