Sha256: c2071c449ddcedc4264620ba7cc1e1861e9a325ffcfbab8a842cee949e13d9b0

Contents?: true

Size: 601 Bytes

Versions: 176

Compression:

Stored size: 601 Bytes

Contents

class AddUnitsToPathologyObservationDescriptions < ActiveRecord::Migration[5.1]
  def change
    create_table :pathology_measurement_units do |t|
      t.string :name, null: false
      t.string :description, null: true
    end

    add_index :pathology_measurement_units, :name, unique: true

    add_column :pathology_observation_descriptions,
               :measurement_unit_id,
               :integer,
               null: true

    add_foreign_key :pathology_observation_descriptions,
                    :pathology_measurement_units,
                    column: :measurement_unit_id
  end
end

Version data entries

176 entries across 176 versions & 1 rubygems

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