#2950 - gateways destroy (ActiveRecord::InvalidForeignKey) "PG::ForeignKeyViolation: ERROR: update or
An ActiveRecord::InvalidForeignKey occurred in gateways#destroy:
PG::ForeignKeyViolation: ERROR: update or delete on table "gateway_ui_node_log_uploads" violates foreign key constraint "ui_node_logs_gateway_ui_node_log_upload_id_fkey" on table "ui_node_logs"
DETAIL: Key (id)=(3048222) is still referenced from table "ui_node_logs".
app/controllers/gateways_controller.rb:40:in `destroy'
-------------------------------
Request:
-------------------------------
* URL : https://bikelink.org/gateways/419
* HTTP Method: DELETE
* IP address : 157.131.94.34
* Parameters : {"_method"=>"delete", "authenticity_token"=>"mPqsqxiHO6Lb1o434ouXOKx74FlFcT/Eb2V34kIFS+m75nyUak/kqbEJ06vhAJelyoE8tCC5XYYwONr8ZtWvJg==", "controller"=>"gateways", "action"=>"destroy", "id"=>"419"}
* Timestamp : 2022-02-17 02:03:07 UTC
* Server : www-5.internal.bikelink.org
* Rails root : /var/www/bikelink
* Process: 30149
-------------------------------
Session:
-------------------------------
* session id: [FILTERED]
* data: {"session_id"=>"70e4bb61349bd002807935c620ac31a3",
"warden.user.person.key"=>[[24632], "RZ23Y_6AEFen-GzyrzFn"],
"_csrf_token"=>"6J61D17dfKZIAJTKL9v67yCbl7YWon8cjMBkUR2wiUc="}
-------------------------------
Backtrace:
-------------------------------
app/controllers/gateways_controller.rb:40:in `destroy'
app/controllers/application_controller.rb:47:in `process_action'
Reload