Sha256: f0b992ba7c9426ac1271e9b4ec57ae1d1b282e408714963e12206cf9a1eedefc
Contents?: true
Size: 348 Bytes
Versions: 35
Compression:
Stored size: 348 Bytes
Contents
module Renalware log "Adding Access Types" do file_path = File.join(File.dirname(__FILE__), "access_types.csv") CSV.foreach(file_path, headers: true) do |row| Accesses::Type.find_or_create_by!(code: row["code"]) do |type| type.name = row["name"] type.abbreviation = row["abbreviation"] end end end end
Version data entries
35 entries across 35 versions & 1 rubygems