Prevent creating overlapping records

https://3.basecamp.com/2914079/buckets/27/card_tables/cards/9275047474
This commit is contained in:
Jorge Manrubia
2025-11-19 11:02:00 +01:00
parent 66d397fa80
commit 63d08c5b13
+1 -1
View File
@@ -9,7 +9,7 @@ module User::Notifiable
end
def bundle(notification)
transaction do
with_lock do
find_or_create_bundle_for(notification)
end
end