-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
db/migrate/20240708210311_update_index_on_ivc_champva_forms.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,17 @@ | ||
class UpdateIndexOnIvcChampvaForms < ActiveRecord::Migration[7.1] | ||
disable_ddl_transaction! | ||
|
||
def up | ||
safety_assured do | ||
execute "DROP INDEX CONCURRENTLY IF EXISTS index_ivc_champva_forms_on_form_uuid;" | ||
execute "CREATE INDEX CONCURRENTLY index_ivc_champva_forms_on_form_uuid ON public.ivc_champva_forms USING btree (form_uuid);" | ||
end | ||
end | ||
|
||
def down | ||
safety_assured do | ||
execute "DROP INDEX CONCURRENTLY IF EXISTS index_ivc_champva_forms_on_form_uuid;" | ||
execute "CREATE INDEX CONCURRENTLY index_ivc_champva_forms_on_form_uuid ON public.ivc_champva_forms USING btree (form_uuid);" | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.