Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "uniq_email_acts" #474

Open
lpirola opened this issue Jun 18, 2018 · 0 comments
Assignees

Comments

@lpirola
Copy link
Contributor

lpirola commented Jun 18, 2018

https://sentry.io/nossas-cidades/bonde-server/issues/408366075/

PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "uniq_email_acts"
DETAIL:  Key (lower(email::email::text))=(*******@gmail.com) already exists.

  app/controllers/widgets/fill_controller.rb:25:in `find_or_create_activist'
    Activist.by_email(activist_params[:email]) || Activist.create!(activist_params.merge(:name => activist_name))
  app/controllers/widgets/fill_controller.rb:8:in `create'
    @activist = find_or_create_activist
...
(129 additional frame(s) were not displayed)

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "uniq_email_acts"
DETAIL:  Key (lower(email::email::text))=(***********@gmail.com) already exists.
: INSERT INTO "activists" ("email", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "uniq_email_acts"
DETAIL:  Key (lower(email::email::text))=(*********@gmail.com) already exists.
: INSERT INTO "activists" ("email", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants