diff --git a/db/migrate/20240209113122_remove_globus_uuid_index.rb b/db/migrate/20240209113122_remove_globus_uuid_index.rb new file mode 100644 index 000000000..6aa36ebbe --- /dev/null +++ b/db/migrate/20240209113122_remove_globus_uuid_index.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class RemoveGlobusUuidIndex < ActiveRecord::Migration[6.1] + def change + remove_index :allocator, column: :globus_uuid + end +end diff --git a/db/migrate/20240209120111_add_missing_indexes_to_allocator.rb b/db/migrate/20240209120111_add_missing_indexes_to_allocator.rb new file mode 100644 index 000000000..e0c5b1b68 --- /dev/null +++ b/db/migrate/20240209120111_add_missing_indexes_to_allocator.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddMissingIndexesToAllocator < ActiveRecord::Migration[6.1] + def change + add_index :allocator, :deleted_at, name: "index_allocator_deleted_at" + add_index :allocator, :role_name, name: "index_allocator_role_name" + add_index :allocator, :ror_id, name: "index_allocator_ror_id" + end +end diff --git a/db/schema.rb b/db/schema.rb index 392931eab..357fab6ca 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. @@ -12,7 +10,8 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2023_10_04_145109) do +ActiveRecord::Schema.define(version: 2024_02_09_120111) do + create_table "active_storage_attachments", charset: "utf8mb4", force: :cascade do |t| t.string "name", limit: 191, null: false t.string "record_type", null: false @@ -85,8 +84,10 @@ t.bigint "logo_file_size" t.datetime "logo_updated_at" t.integer "doi_estimate", default: 0, null: false - t.index ["globus_uuid"], name: "index_allocator_on_globus_uuid" + t.index ["deleted_at"], name: "index_allocator_deleted_at" t.index ["organization_type"], name: "index_allocator_organization_type" + t.index ["role_name"], name: "index_allocator_role_name" + t.index ["ror_id"], name: "index_allocator_ror_id" t.index ["symbol"], name: "symbol", unique: true end