Sha256: 48a747b26c55f093440100a58effefbd4520e6161971334540c305c98ce47e53

Contents?: true

Size: 818 Bytes

Versions: 98

Compression:

Stored size: 818 Bytes

Contents

class AddMissingIndexes2 < ActiveRecord::Migration[5.1]
  def change
    within_renalware_schema do
      # These indexes where missed as we had used the add_column method passing in index: true
      # but that is not supported so no index was created
      add_index :addresses, :country_id
      add_index :patients, :country_of_birth_id
      add_index :patients, :sent_to_ukrdc_at
      add_index :patients, :send_to_renalreg
      add_index :patients, :send_to_rpv
      add_index :patient_bookmarks, :urgent
      add_index :letter_recipients, :emailed_at
      add_index :letter_recipients, :printed_at
      add_index :hospital_wards, :code
      add_index :feed_messages, :patient_identifier
      add_index :access_procedures, :performed_by
      add_index :patient_ethnicities, :cfh_name
    end
  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
renalware-core-2.0.84 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.83 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.82 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.81 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.80 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.79 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.78 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.77 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.76 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.75 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.74 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.73 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.72 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.71 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.70 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.69 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.68 db/migrate/20180802132417_add_missing_indexes_2.rb
renalware-core-2.0.67 db/migrate/20180802132417_add_missing_indexes_2.rb