Skip to content

Commit

Permalink
fix invalid index (#17447)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmtolmach authored Jul 9, 2024
1 parent 1a7755d commit 629a325
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions db/migrate/20240708210311_update_index_on_ivc_champva_forms.rb
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
2 changes: 1 addition & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 629a325

Please sign in to comment.