Sha256: c0e974c1e6b0b78399f0f21b0458444873255f50266886e69033b963f9308f9f
Contents?: true
Size: 330 Bytes
Versions: 30
Compression:
Stored size: 330 Bytes
Contents
# frozen_string_literal: true module Renalware log "Adding Access Sites" do file_path = File.join(File.dirname(__FILE__), "access_sites.csv") CSV.foreach(file_path, headers: true) do |row| Accesses::Site.find_or_create_by!(code: row["code"]) do |site| site.name = row["name"] end end end end
Version data entries
30 entries across 30 versions & 1 rubygems