#2895 - gcp#create_account: PG::ForeignKeyViolation: ERROR: insert or update on table "transactions"

An ActiveRecord::InvalidForeignKey occurred in gcp#create_account:

 PG::ForeignKeyViolation: ERROR:  insert or update on table "transactions" violates foreign key constraint "transactions_transacting_person_id_fkey"
DETAIL:  Key (transacting_person_id)=(51767) is not present in table "people".

 app/controllers/gcp_controller.rb:66:in `create_account'


-------------------------------
Request:
-------------------------------

 * URL        : https://www.bikelink.org/gcp/create_account
 * HTTP Method: POST
 * IP address : 72.197.196.231
 * Parameters : {"authenticity_token"=>"9guLx750xpXKBTn1dIYITDxRJAuLYZyKfcGAMGcIn7oI6IaUoQR9wxoOYCU7Jes4vqQt2+gbetWXzLIQ2MucyQ==", "transaction_id"=>"114158", "person"=>{"first_name"=>"Michael", "last_name"=>"Allen", "street_address"=>"1225 Pennsylvania Ave", "apartment_number"=>"", "city"=>"San Diego", "state_id"=>"6", "postal_code"=>"92103", "country_id"=>"231", "phone"=>"8582479876", "email"=>"mga.allen@gmail.com", "picture_id"=>"2935", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "payment_method_nonce"=>"", "understand_credit_card_storage"=>"1", "commit"=>"Create Account", "device_data"=>"{\"device_session_id\":\"5352c71a033502d814457f57cfeaad53\"}", "controller"=>"gcp", "action"=>"create_account"}
 * Timestamp  : 2021-12-18 19:55:23 UTC
 * Server : www-3.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 15301

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"7fc68b666ba80558295f1975fdf54e70",
  "_csrf_token"=>"fOV0+ka7B88zKKR3rKr7CgG4YdATIj5hc3zV2Twlig8="}

-------------------------------
Backtrace:
-------------------------------

 app/controllers/gcp_controller.rb:66:in `create_account'
 app/controllers/application_controller.rb:47:in `process_action'
Reload