Merge pull request #3564 from aignatov-bio/ai-sci-6097-change-name-bmt-inventory

Rename BMT inventory in rake task [SCI-6097]
This commit is contained in:
Alex Kriuchykhin 2021-09-29 16:08:50 +02:00 committed by GitHub
commit 97e5882fa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ namespace :biomolecule_toolkit do
team = Team.find(args[:team_id])
BmtRepository.transaction do
repository = BmtRepository.create!(name: 'Molecules', team: team, created_by: team.created_by)
repository = BmtRepository.create!(name: 'Biomolecule registry', team: team, created_by: team.created_by)
attributes.each do |attribute|
repository.repository_columns.create!(name: attribute['name'],
data_type: 'RepositoryTextValue',