#2945 - An ActiveRecord::RecordNotUnique occurred in answering_service#check_for_existing:

An ActiveRecord::RecordNotUnique occurred in answering_service#check_for_existing:

 PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_people_on_email"
DETAIL:  Key (email)=(iamannettesouza@gmail.com) already exists.

 app/formers/people/answering_services/info_form.rb:22:in `save'


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

 * URL        : https://www.bikelink.org/answering_service/check_for_existing
 * HTTP Method: POST
 * IP address : 173.164.162.129
 * Parameters : {"authenticity_token"=>"WVvigT1W4ERkRBkzU+0ozdAwcb1ydEMVpyhkh3Ag1eAVeAlyp7slQTAVA64Ru+hXua7Pxp4Xjff5JTQdGP1HnA==", "card_model_type"=>"", "caller"=>"get_persons_info", "path"=>"activate", "card_id"=>"69368", "person"=>{"caller_id"=>"925-446-9940", "first_name"=>"ANNETTE", "last_name"=>"SOUZA", "street_address"=>"115 EL CAMINO DR", "apartment_number"=>"", "city"=>"PITTSBURG ", "state_id"=>"6", "postal_code"=>"94565", "country_id"=>"231", "unconfirmed_phone"=>"925-446-9940", "verify_phone_by"=>"sms", "email"=>"IAMANNETTESOUZA@GMAIL.COM", "picture_id"=>"7845"}, "controller"=>"answering_service", "action"=>"check_for_existing"}
 * Timestamp  : 2022-02-08 22:45:31 UTC
 * Server : www-5.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 30448

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

 * session id: [FILTERED]
 * data: {"session_id"=>"d508e12d51786f54cf49a01d6ca908f9",
  "warden.user.person.key"=>[[14447], "_ZqQwkHHepxG1qSV9km7"],
  "_csrf_token"=>"avQDuVELCeA5d+TGv5QwyCUjuNrgd/BbkAL3ZpL6gfA="}

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

 app/formers/people/answering_services/info_form.rb:22:in `save'
 app/controllers/answering_service_controller.rb:145:in `check_for_existing'
 app/controllers/application_controller.rb:47:in `process_action'
Znovu načítať