Skip to content

Commit 5816559

Browse files
authored
Merge pull request rails#53805 from fatkodima/fix-flaky-polymorphic-destroy_async-test
Fix flaky test for async destroying of a polymorphic `belongs_to` association
2 parents eff2f69 + c3a8ac6 commit 5816559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/models/essay_destroy_async.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class EssayDestroyAsync < ActiveRecord::Base
44
self.table_name = "essays"
55
belongs_to :book, dependent: :destroy_async, class_name: "BookDestroyAsync"
6-
belongs_to :writer, primary_key: :name, polymorphic: true, dependent: :destroy_async
6+
belongs_to :writer, polymorphic: true, dependent: :destroy_async
77
end
88

99
class LongEssayDestroyAsync < EssayDestroyAsync

0 commit comments

Comments
 (0)