Files
snpr/app/models/plos_paper.rb
Helge Rausch 828d84f1a9 Refactor Zipfulldata worker (#541)
* Breaks up Zipfulldata worker into service classes
* Fixes N+1 queries for phenotype and picture phenotype CSVs
  * moving phenotype CSV generation into database for performance
* Fixes unintentional deletion of unrelated files
* Reduces the time it takes to assemble the zip file from about 10 to about 5 hours, with the bottle-neck being zipping the genotype files
2023-01-04 09:58:25 +01:00

11 lines
221 B
Ruby

# frozen_string_literal: true
class PlosPaper < ApplicationRecord
include PgSearchCommon
has_many :snp_references, as: :paper
has_many :snps, through: :snp_references
pg_search_common_scope against: :title
end