Skip to content

Commit

Permalink
Clean up after data migration
Browse files Browse the repository at this point in the history
  • Loading branch information
samnang committed Jan 8, 2025
1 parent ab53653 commit 43ef6f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 100 deletions.
5 changes: 3 additions & 2 deletions app/workflows/handle_phone_call_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def create_or_find_contact!(platform_account_sid, msisdn)
Contact.find_or_create_by!(
account: account,
msisdn: PhonyRails.normalize_number(msisdn),
iso_country_code: ACCOUNT_COUNTRY_CODES.fetch(account.id, "KH")
)
) do |record|
record.iso_country_code = ACCOUNT_COUNTRY_CODES.fetch(account.id, "KH")
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeIsoCountryCodeNotNullOnBeneficiaries < ActiveRecord::Migration[8.0]
def change
change_column_null :contacts, :iso_country_code, false
end
end

This file was deleted.

0 comments on commit 43ef6f9

Please sign in to comment.