Commit 96c8af47 authored by pierre.tremouilhac's avatar pierre.tremouilhac
Browse files

Merge branch '247-upd-molecul-name-migration' into 'development'

Resolve "upd molecul name migration"

Closes #247

See merge request !444
parents 654099ec 9b4d30ce
......@@ -4,7 +4,9 @@ namespace :data do
Molecule.find_each(&:create_molecule_names)
Sample.with_deleted.find_each do |s|
next if s.molecule_name_id
m = s.molecule
next unless m
mns = m.molecule_names
origin = m.iupac_name || m.sum_formular
if origin && mns.present?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment