Skip to content

Commit

Permalink
cannot truncate a table referenced in a foreign key constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
pjurewicz committed Jul 20, 2023
1 parent e8aaeb0 commit 50150fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/dres_rails/spec/features/expose_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

before(:each) do
::ActiveRecord::Base.connection.execute("TRUNCATE event_store_events_in_streams")
::ActiveRecord::Base.connection.execute("DELETE FROM event_store_events_in_streams")
::ActiveRecord::Base.connection.execute("TRUNCATE event_store_events")
end

Expand Down

0 comments on commit 50150fc

Please sign in to comment.