Sha256: edad3fcadcc9c6dab45d27a07d62b2b26225fdba6b243a3fe0aa98ad511540e5
Contents?: true
Size: 439 Bytes
Versions: 28
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true module Renalware log "Adding Default Event Types e.g. Biopsy, Swabs" do file_path = File.join(File.dirname(__FILE__), "event_types.csv") CSV.foreach(file_path, headers: true) do |row| Events::Type.find_or_create_by!(name: row["name"], event_class_name: row["event_class_name"], slug: row["slug"]) end end end
Version data entries
28 entries across 28 versions & 1 rubygems