Skip to content

Commit

Permalink
[ARP representatives] migrate to move accredited references (#20475)
Browse files Browse the repository at this point in the history
  • Loading branch information
chumpy authored Feb 4, 2025
1 parent 8375533 commit ea5db57
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
9 changes: 3 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,12 @@
class RemoveAccreditedRelationships < ActiveRecord::Migration[7.2]
disable_ddl_transaction!

def change
safety_assured do
remove_foreign_key :ar_power_of_attorney_requests, :accredited_individuals

remove_reference :ar_power_of_attorney_requests, :accredited_individual,
index: { algorithm: :concurrently }
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class PrepareArPosHolderData < ActiveRecord::Migration[7.2]

def change
safety_assured do
add_column :ar_power_of_attorney_requests, :accredited_individual_registration_number, :string
add_column :ar_power_of_attorney_requests, :power_of_attorney_holder_poa_code, :string
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemoveIndexOnPowerOfAttorneyHolder < ActiveRecord::Migration[7.2]
disable_ddl_transaction!

def change
remove_index :ar_power_of_attorney_requests, name: "index_ar_power_of_attorney_requests_on_power_of_attorney_holder", algorithm: :concurrently
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemovePowerOfAttorneyHolderIdFromArPowerOfAttorneyRequests < ActiveRecord::Migration[7.2]
def change
safety_assured do
remove_column :ar_power_of_attorney_requests, :power_of_attorney_holder_id
end
end
end

0 comments on commit ea5db57

Please sign in to comment.