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 070b1f1 + b6d61ee commit b13ae02Copy full SHA for b13ae02
spec/active_record/connection_adapters/oracle_enhanced/context_index_spec.rb
@@ -185,6 +185,8 @@ class ::Post < ActiveRecord::Base
185
186
describe "on multiple tables" do
187
before(:all) do
188
+ @old_destroy_all_in_batches = ActiveRecord::Base.destroy_all_in_batches
189
+ ActiveRecord::Base.destroy_all_in_batches = true
190
@conn = ActiveRecord::Base.connection
191
create_tables
192
class ::Post < ActiveRecord::Base
@@ -201,6 +203,7 @@ class ::Comment < ActiveRecord::Base
201
203
Object.send(:remove_const, "Comment")
202
204
Object.send(:remove_const, "Post")
205
ActiveRecord::Base.clear_cache!
206
+ ActiveRecord::Base.destroy_all_in_batches = @old_destroy_all_in_batches
207
end
208
209
after(:each) do
0 commit comments