zinc-collective / convene

An Operating System for the Solidarity Economy
https://convene.zinc.coop
Other
56 stars 19 forks source link

ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "furnitures" violates foreign key cons... #2339

Open sentry-io[bot] opened 1 month ago

sentry-io[bot] commented 1 month ago

Sentry Issue: CONVENE-2K

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"), &)
...
(115 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".