Skip to content

Commit 537afdb

Browse files
committed
Fix merge issue
1 parent 2926154 commit 537afdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cases/schema_dumper_test_sqlserver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
162162

163163
it "schemas are dumped and tables names only include non-default schema" do
164164
stream = StringIO.new
165-
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool, stream)
165+
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
166166
generated_schema = stream.string
167167

168168
# Only generate non-default schemas. Default schema is 'dbo'.
@@ -184,7 +184,7 @@ def generate_schema_for_table(*table_names)
184184

185185
stream = StringIO.new
186186
ActiveRecord::SchemaDumper.ignore_tables = all_tables - table_names
187-
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool, stream)
187+
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
188188

189189
@generated_schema = stream.string
190190
yield @generated_schema if block_given?

0 commit comments

Comments
 (0)