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.0.pre.rc9 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc8 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc7 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc6 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc5 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc4 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc3 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.rc1 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta12 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta11 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta10 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta9 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta8 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta7 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta6 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta5 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.0.pre.beta4 db/migrate/20160905140623_add_missing_prescription_indexes.rb