Commit 9b4d30ce authored by pierre.tremouilhac's avatar pierre.tremouilhac
Browse files

Update ver_20170906105933_molecule_name.rake

parent 654099ec
......@@ -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