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