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::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "furnitures" violates foreign key cons... #2704

Open
sentry-io bot opened this issue Nov 6, 2024 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Nov 6, 2024

Sentry Issue: CONVENE-37

PG::ForeignKeyViolation: ERROR:  update or delete on table "furnitures" violates foreign key constraint "fk_rails_52134930a6" on table "marketplace_tax_rates" (PG::ForeignKeyViolation)
DETAIL:  Key (id)=(5b6a095d-d5ff-44be-b6b5-d933259629e8) is still referenced from table "marketplace_tax_rates".

  app/controllers/furnitures_controller.rb:43:in `destroy'
    furniture.furniture.destroy!
  app/models/neighborhood/time_zone_mixin.rb:7:in `set_time_zone'
    Time.use_zone(ENV.fetch("NEIGHBORHOOD_TIME_ZONE"), &)
...
(116 additional frame(s) were not displayed)

ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR:  update or delete on table "furnitures" violates foreign key constraint "fk_rails_52134930a6" on table "marketplace_tax_rates" (ActiveRecord::InvalidForeignKey)
DETAIL:  Key (id)=(5b6a095d-d5ff-44be-b6b5-d933259629e8) is still referenced from table "marketplace_tax_rates".
@rosschapman rosschapman self-assigned this Jan 20, 2025
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

1 participant