Skip to content

Commit

Permalink
Merge branch 'seek_ena_upload' of github.com:ELIXIR-Belgium/seek into…
Browse files Browse the repository at this point in the history
… fairdom_test
  • Loading branch information
Kevin De Pelseneer committed Oct 10, 2023
2 parents bbf82a8 + fa2f2c8 commit 74b5dbe
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 74b5dbe

Please sign in to comment.