Sha256: c313047032e35882a2784417aac3695b33342a53d14ca46fe77de153ac9af047

Contents?: true

Size: 630 Bytes

Versions: 70

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

module Renalware
  log "Adding Modality Descriptions" do
    Deaths::ModalityDescription.find_or_create_by!(name: "Death", code: "death")
    Transplants::DonorModalityDescription.find_or_create_by!(name: "Live Donor", code: "live_donor")
    Transplants::RecipientModalityDescription.find_or_create_by!(name: "Transplant", code: "transplant")
    PD::ModalityDescription.find_or_create_by!(name: "PD", code: "pd")
    HD::ModalityDescription.find_or_create_by!(name: "HD", code: "hd")
    LowClearance::ModalityDescription.find_or_create_by!(name: "Low Clearance", code: "low_clearance")
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
renalware-core-2.0.167 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.166 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.165 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.164 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.163 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.162 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.161 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.160 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.159 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.158 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.157 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.156 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.155 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.153 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.152 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.151 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.149 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.148 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.147 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.146 db/seeds/default/modalities/descriptions.rb