Sha256: 26aabe910435f5d01c4164a903bc1ecf81f558a7f4e44f3f4d8d19491b2faabd

Contents?: true

Size: 287 Bytes

Versions: 30

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

module Renalware
  log "Adding PD Training Types" do
    file_path = File.join(File.dirname(__FILE__), "training_types.csv")

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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
renalware-core-2.0.147 db/seeds/default/pd/training_types.rb
renalware-core-2.0.146 db/seeds/default/pd/training_types.rb
renalware-core-2.0.145 db/seeds/default/pd/training_types.rb
renalware-core-2.0.144 db/seeds/default/pd/training_types.rb
renalware-core-2.0.143 db/seeds/default/pd/training_types.rb
renalware-core-2.0.142 db/seeds/default/pd/training_types.rb
renalware-core-2.0.141 db/seeds/default/pd/training_types.rb
renalware-core-2.0.140 db/seeds/default/pd/training_types.rb
renalware-core-2.0.139 db/seeds/default/pd/training_types.rb
renalware-core-2.0.138 db/seeds/default/pd/training_types.rb