Skip to content

Commit c3a8ac6

Browse files
committed
Fix flaky test for async destroying of a polymorphic belongs_to association
1 parent eff2f69 commit c3a8ac6

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)