Sha256: a2b31281a19b741afb3c797a8c5baf046a4860829155a8a6589fc903554a23da

Contents?: true

Size: 1.03 KB

Versions: 177

Compression:

Stored size: 1.03 KB

Contents

class RemoveUnitsFromAttributeNames < ActiveRecord::Migration[4.2]
  def change
    rename_column(:pd_bag_types, :glucose_grams_per_litre, :glucose_content)
    rename_column(:pd_bag_types, :sodium_mmole_l, :sodium_content)
    rename_column(:pd_bag_types, :lactate_mmole_l, :lactate_content)
    rename_column(:pd_bag_types, :bicarbonate_mmole_l, :bicarbonate_content)
    rename_column(:pd_bag_types, :calcium_mmole_l, :calcium_content)
    rename_column(:pd_bag_types, :magnesium_mmole_l, :magnesium_content)

    rename_column(:pd_regimes, :glucose_ml_percent_1_36, :glucose_volume_percent_1_36)
    rename_column(:pd_regimes, :glucose_ml_percent_2_27, :glucose_volume_percent_2_27)
    rename_column(:pd_regimes, :glucose_ml_percent_3_86, :glucose_volume_percent_3_86)
    rename_column(:pd_regimes, :amino_acid_ml, :amino_acid_volume)
    rename_column(:pd_regimes, :icodextrin_ml, :icodextrin_volume)
    rename_column(:pd_regimes, :overnight_pd_ml, :overnight_pd_volume)
    rename_column(:pd_regimes, :last_fill_ml, :last_fill_volume)
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.1.0 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.167 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.166 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.165 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.164 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.163 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.162 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.161 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.160 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.159 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.158 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.157 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.156 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.155 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.153 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.152 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.151 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.149 db/migrate/20161114174727_remove_units_from_attribute_names.rb
renalware-core-2.0.148 db/migrate/20161114174727_remove_units_from_attribute_names.rb