Skip to content

Commit

Permalink
Fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Jul 16, 2024
1 parent 2926154 commit 537afdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cases/schema_dumper_test_sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase

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

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

stream = StringIO.new
ActiveRecord::SchemaDumper.ignore_tables = all_tables - table_names
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool, stream)
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)

@generated_schema = stream.string
yield @generated_schema if block_given?
Expand Down

0 comments on commit 537afdb

Please sign in to comment.