mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-25 09:13:02 +08:00
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:
commit
97e5882fa3
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ namespace :biomolecule_toolkit do
|
||||||
|
|
||||||
team = Team.find(args[:team_id])
|
team = Team.find(args[:team_id])
|
||||||
BmtRepository.transaction do
|
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|
|
attributes.each do |attribute|
|
||||||
repository.repository_columns.create!(name: attribute['name'],
|
repository.repository_columns.create!(name: attribute['name'],
|
||||||
data_type: 'RepositoryTextValue',
|
data_type: 'RepositoryTextValue',
|
||||||
|
|
Loading…
Reference in a new issue