Commit dcb79f33 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'fix_atomic_internal_id_fully_decomposed' into 'master'

Fixes rollback not working for AtomicInternalId in decomposed model

See merge request gitlab-org/gitlab!80973
parents f5e786d8 fa0096fb
......@@ -155,7 +155,7 @@ RSpec.shared_examples 'AtomicInternalId' do |validate_presence: true|
end
def expect_iid_to_be_set_and_rollback
ActiveRecord::Base.transaction(requires_new: true) do
instance.transaction(requires_new: true) do
instance.save!
expect(read_internal_id).not_to be_nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment