Sha256: 5112cef31907e12943ccdc49da4aa0687f51223f8f9a6a167fd83be8b7850c6d

Contents?: true

Size: 556 Bytes

Versions: 177

Compression:

Stored size: 556 Bytes

Contents

class AddMissingPrescriptionIndexes < ActiveRecord::Migration[4.2]
  def change
    add_index :medication_prescriptions, :created_by_id
    add_index :medication_prescriptions, :updated_by_id
    add_index :medication_prescriptions, :patient_id
    add_index :medication_prescriptions, :drug_id
    add_index :medication_prescriptions, :medication_route_id
    add_index :medication_prescriptions, [:patient_id, :medication_route_id], name: 'idx_mp_patient_id_medication_route_id'
    add_index :medication_prescriptions, [:drug_id, :patient_id]
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
renalware-core-2.0.18 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.17 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.16 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.15 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.14 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.13 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.12 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.11 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.9 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.8 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.7 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.5 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.4 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.3 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.2 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.1 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc13 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc11 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc10 db/migrate/20160905140623_add_missing_prescription_indexes.rb