Sha256: 09a95d28ebf8d45c51665c2bfc64c3d44f4ef6cf1978cbcbe9ff8e3ac8edea65
Contents?: true
Size: 390 Bytes
Versions: 30
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true module Renalware log "Adding Pathology Measurement Units" do file_path = File.join(File.dirname(__FILE__), "measurement_units.csv") CSV.foreach(file_path, headers: true) do |row| Pathology::MeasurementUnit.find_or_create_by!( id: row["id"], name: row["name"], description: row["description"] ) end end end
Version data entries
30 entries across 30 versions & 1 rubygems