Sha256: 4767824cf0bc77cc76b0fca60b945ac262b478b3f8e3cb2d35cfc7ddea25c102

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

module Renalware
  log "Adding HD Cannulation Types" do

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

    CSV.foreach(file_path, headers: true) do |row|
      HD::CannulationType.find_or_create_by!(name: row["name"])
    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/hd/cannulation_types.rb
renalware-core-2.0.0.pre.beta8 db/seeds/default/hd/cannulation_types.rb
renalware-core-2.0.0.pre.beta7 db/seeds/default/hd/cannulation_types.rb
renalware-core-2.0.0.pre.beta6 db/seeds/default/hd/cannulation_types.rb
renalware-core-2.0.0.pre.beta5 db/seeds/default/hd/cannulation_types.rb
renalware-core-2.0.0.pre.beta4 db/seeds/default/hd/cannulation_types.rb