Sha256: 22981ab6168bb1690ada758af004babd42bf9b62cea211a9b7e71b21e0255ec1

Contents?: true

Size: 300 Bytes

Versions: 6

Compression:

Stored size: 300 Bytes

Contents

module Renalware
  log "Adding Pathology Labs" do

    file_path = File.join(File.dirname(__FILE__), "pathology_labs.csv")

    Pathology::Lab.transaction do
      CSV.foreach(file_path, headers: true) do |row|
        Pathology::Lab.find_or_create_by!(name: row["name"])
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 db/seeds/default/pathology/pathology_labs.rb
renalware-core-2.0.0.pre.beta8 db/seeds/default/pathology/pathology_labs.rb
renalware-core-2.0.0.pre.beta7 db/seeds/default/pathology/pathology_labs.rb
renalware-core-2.0.0.pre.beta6 db/seeds/default/pathology/pathology_labs.rb
renalware-core-2.0.0.pre.beta5 db/seeds/default/pathology/pathology_labs.rb
renalware-core-2.0.0.pre.beta4 db/seeds/default/pathology/pathology_labs.rb