Skip to content

Commit

Permalink
[ART] Make POA request and form adjustments migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nihil2501 authored and ojbucao committed Dec 26, 2024
1 parent c8daeb7 commit 8f66027
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
15 changes: 9 additions & 6 deletions db/schema.rb

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class MakePoaRequestAndFormAdjustments < ActiveRecord::Migration[7.1]
disable_ddl_transaction!

def change
remove_index :ar_power_of_attorney_forms, name: 'idx_on_city_bidx_state_bidx_zipcode_bidx_a85b76f9bc'
remove_index :ar_power_of_attorney_forms, name: 'index_ar_power_of_attorney_forms_on_zipcode_bidx'
safety_assured { remove_columns :ar_power_of_attorney_forms, :city_bidx, :state_bidx, :zipcode_bidx }

add_column :ar_power_of_attorney_forms, :claimant_city_ciphertext, :string, null: false
add_column :ar_power_of_attorney_forms, :claimant_city_bidx, :string, null: false

add_column :ar_power_of_attorney_forms, :claimant_state_code_ciphertext, :string, null: false
add_column :ar_power_of_attorney_forms, :claimant_state_code_bidx, :string, null: false

add_column :ar_power_of_attorney_forms, :claimant_zip_code_ciphertext, :string, null: false
add_column :ar_power_of_attorney_forms, :claimant_zip_code_bidx, :string, null: false

add_index :ar_power_of_attorney_forms,
[:claimant_city_bidx, :claimant_state_code_bidx, :claimant_zip_code_bidx],
algorithm: :concurrently

add_column :ar_power_of_attorney_requests, :claimant_type, :string, null: false
end
end

0 comments on commit 8f66027

Please sign in to comment.