File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
162
162
163
163
it "schemas are dumped and tables names only include non-default schema" do
164
164
stream = StringIO . new
165
- ActiveRecord ::SchemaDumper . dump ( ActiveRecord ::Base . connection_pool , stream )
165
+ ActiveRecord ::SchemaDumper . dump ( ActiveRecord ::Base . connection , stream )
166
166
generated_schema = stream . string
167
167
168
168
# Only generate non-default schemas. Default schema is 'dbo'.
@@ -184,7 +184,7 @@ def generate_schema_for_table(*table_names)
184
184
185
185
stream = StringIO . new
186
186
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 )
188
188
189
189
@generated_schema = stream . string
190
190
yield @generated_schema if block_given?
You can’t perform that action at this time.
0 commit comments