Skip to content

Commit

Permalink
Add Study title
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin De Pelseneer committed Oct 10, 2023
1 parent 242a30a commit fa2f2c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/seeds/016_ena_upload.seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def create_sample_controlled_vocab_terms_attributes(array)
# Assay
unless ExtendedMetadataType.where(title: 'ENA Study metadata', supported_type: 'Assay').any?
cmt = ExtendedMetadataType.new(title: 'ENA Study metadata', supported_type: 'Assay')
cmt.extended_metadata_attributes << ExtendedMetadataAttribute.new(title: 'ena_study_title', required: true,
sample_attribute_type: SampleAttributeType.find_by(title: 'String'), label: 'ENA study title',
description: 'Title of the study as would be used in a publication.')
cmt.extended_metadata_attributes << ExtendedMetadataAttribute.new(title: 'study_type', required: true,
sample_attribute_type: SampleAttributeType.find_by(title: 'Controlled Vocabulary'),
sample_controlled_vocab: study_type_cv,
Expand Down

0 comments on commit fa2f2c8

Please sign in to comment.