We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9716747 + 7813fb5 commit 7e06191Copy full SHA for 7e06191
activerecord/test/cases/insert_all_test.rb
@@ -770,6 +770,8 @@ def test_upsert_all_on_relation_precedence
770
end
771
772
def test_upsert_all_resets_relation
773
+ skip unless supports_insert_on_duplicate_update?
774
+
775
audit_logs = Developer.create!(name: "Alice").audit_logs.load
776
777
assert_changes "audit_logs.loaded?", from: true, to: false do
@@ -786,6 +788,8 @@ def test_upsert_all_create_with
786
788
787
789
790
def test_upsert_all_has_many_through
791
792
793
book = Book.first
794
assert_raise(ArgumentError) { book.subscribers.upsert_all([ { nick: "Jimmy" } ]) }
795
0 commit comments