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.1.1 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.1.0 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.167 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.166 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.165 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.164 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.163 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.162 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.161 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.160 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.159 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.158 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.157 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.156 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.155 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.153 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.152 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.151 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.149 db/migrate/20160905140623_add_missing_prescription_indexes.rb
renalware-core-2.0.148 db/migrate/20160905140623_add_missing_prescription_indexes.rb