#3269 - ui_nodes#destroy (ActiveRecord::InvalidForeignKey) "PG::ForeignKeyViolation: ERROR: update or ...

An ActiveRecord::InvalidForeignKey occurred in ui_nodes#destroy:

 PG::ForeignKeyViolation: ERROR:  update or delete on table "ui_nodes" violates foreign key constraint "fk_rails_b4770a6059" on table "error_messages"
DETAIL:  Key (id)=(3607) is still referenced from table "error_messages".

 app/controllers/ui_nodes_controller.rb:38:in `destroy'


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

 * URL        : https://bikelink.org/ui_nodes/3607
 * HTTP Method: DELETE
 * IP address : 98.35.154.160
 * Parameters : {"_method"=>"delete", "authenticity_token"=>"ticZJznN8cD3Ppr0rrWmRRnN//bI+3o35qHbT6X9YTyNriV5gGYaRf4eJhFJsRzxRzsEqz4yRwzkiG7srCiQpQ==", "controller"=>"ui_nodes", "action"=>"destroy", "id"=>"3607"}
 * Timestamp  : 2022-10-28 22:22:29 UTC
 * Server : www-6.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 26448

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

 * session id: [FILTERED]
 * data: {"session_id"=>"8b56626ba60f69907aa51aca679dbe78",
  "warden.user.person.key"=>[[31069], "aS4D8gZPuz3F2YRuq8Wc"],
  "_csrf_token"=>"5HU8ToUrTqMGPjDf0+xE6JXT7IPJfWeeyCGyU4/p5cM=",
  "params_for_filter"=>
   {"filter_by_location"=>nil,
    "filter_by_owner"=>nil,
    "filter_by_state"=>2,
    "filter_by_priority"=>nil}}


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

 app/controllers/ui_nodes_controller.rb:38:in `destroy'
 app/controllers/application_controller.rb:44:in `process_action'

Znovu načítať