-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/Remove Indexes - Allocator Table (#1118)
* Remove unused index globus_uuid * Fix rubocop issue * Add missing missing indexes * run migration * fix rubocop issue * Add index for ror_id * Exclude schema.rb since it is auto-generated
- Loading branch information
Showing
3 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class RemoveGlobusUuidIndex < ActiveRecord::Migration[6.1] | ||
def change | ||
remove_index :allocator, column: :globus_uuid | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
db/migrate/20240209120111_add_missing_indexes_to_allocator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters