Attempting to update a record in a consuming application, the follow errors occurs when trying to replace an existing attachment.
2025-08-07T17:13:00.923180+00:00 app[web.1]: I, [2025-08-07T17:13:00.923107 #2] INFO -- : [34eb427a-8463-c214-8996-3dc77f45f137] Completed 500 Internal Server Error in 80ms (ActiveRecord: 11.7ms (7 queries, 1 cached) | GC: 0.0ms)
2025-08-07T17:13:00.924570+00:00 app[web.1]: E, [2025-08-07T17:13:00.924523 #2] ERROR -- : [34eb427a-8463-c214-8996-3dc77f45f137]
2025-08-07T17:13:00.924571+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] ActiveRecord::ReadonlyAttributeError (storage_key):
2025-08-07T17:13:00.924572+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137]
2025-08-07T17:13:00.924572+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] activerecord (8.0.2) lib/active_record/readonly_attributes.rb:59:in 'ActiveRecord::ReadonlyAttributes::HasReadonlyAttributes#_write_attribute'
2025-08-07T17:13:00.924573+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] activemodel (8.0.2) lib/active_model/attribute_methods.rb:273:in 'Resource::GeneratedAttributeMethods#storage_key='
2025-08-07T17:13:00.924574+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] activemodel (8.0.2) lib/active_model/attribute_assignment.rb:69:in 'Kernel#public_send'
2025-08-07T17:13:00.924575+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] activemodel (8.0.2) lib/active_model/attribute_assignment.rb:69:in 'ActiveModel::AttributeAssignment#_assign_attribute'
2025-08-07T17:13:00.924576+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] activerecord (8.0.2) lib/active_record/attribute_assignment.rb:17:in 'block in ActiveRecord::AttributeAssignment#_assign_attributes'
2025-08-07T17:13:00.924576+00:00 app[web.1]: [34eb427a-8463-c214-8996-3dc77f45f137] activerecord (8.0.2) lib/active_record/attribute_assignment.rb:9:in 'Hash#each'
Attempting to update a record in a consuming application, the follow errors occurs when trying to replace an existing attachment.