sul-dlss / happy-heron

Self-Deposit for the Stanford Digital Repository (SDR): H2 is a Rails web application enabling users to deposit scholarly content into SDR
Apache License 2.0
10 stars 2 forks source link

ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_work_versions_on_work_id_and_user_version" #3512

Closed justinlittman closed 2 months ago

justinlittman commented 2 months ago

This can be reproduced by H2 integration tests.

Backtrace

line 227 of [PROJECT_ROOT]/app/forms/base_work_form.rb: save_model
line 220 of [PROJECT_ROOT]/app/forms/base_work_form.rb: block in save!
line 219 of [PROJECT_ROOT]/app/forms/base_work_form.rb: save!

View full backtrace and more info at honeybadger.io