Sha256: 2912d96272f648f9e076829b8092cc140322cbc63cdfa7d2f1de102ee6d8f095

Contents?: true

Size: 713 Bytes

Versions: 21

Compression:

Stored size: 713 Bytes

Contents

class AddMissingForeignKeyIndexes < ActiveRecord::Migration[5.1]
  # Found using https://github.com/gregnavis/active_record_doctor
  def change
    add_index :drug_types_drugs, :drug_type_id
    add_index :hd_stations, :location_id
    add_index :letter_contacts, :patient_id
    add_index :messaging_messages, :replying_to_message_id
    add_index :pathology_observation_descriptions, :measurement_unit_id
    add_index :patient_bookmarks, :user_id
    add_index(
      :pd_peritonitis_episode_types, :peritonitis_episode_type_description_id,
      name: "index_pd_peritonitis_episode_types_description_id"
    )
    add_index :pd_pet_adequacy_results, :patient_id
    add_index :roles_users, :role_id
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
renalware-core-2.0.64 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.63 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.62 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.61 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.60 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.58 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.57 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.56 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.55 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.54 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.53 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.52 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.51 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.50 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.48 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.47 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.46 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.45 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.44 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb
renalware-core-2.0.43 db/migrate/20180802144507_add_missing_foreign_key_indexes.rb