@@ -570,8 +570,8 @@ def test_create_table_with_defaults_coerce
570
570
five = columns . detect { |c | c . name == "five" }
571
571
572
572
assert_equal "hello" , one . default
573
- assert_equal true , connection . lookup_cast_type_from_column ( two ) . deserialize ( two . default )
574
- assert_equal false , connection . lookup_cast_type_from_column ( three ) . deserialize ( three . default )
573
+ assert_equal true , two . fetch_cast_type ( connection ) . deserialize ( two . default )
574
+ assert_equal false , three . fetch_cast_type ( connection ) . deserialize ( three . default )
575
575
assert_equal 1 , four . default
576
576
assert_equal "hello" , five . default
577
577
end
@@ -1971,12 +1971,17 @@ def with_marshable_time_defaults
1971
1971
# Revert changes
1972
1972
@connection . change_column_default ( :sst_datatypes , :datetime , current_default ) if current_default . present?
1973
1973
end
1974
-
1975
- # We need to give the full path for this to work.
1976
- undef_method :schema_dump_path
1977
- def schema_dump_path
1974
+
1975
+ # We need to give the full paths for this to work.
1976
+ undef_method :schema_dump_5_1_path
1977
+ def schema_dump_5_1_path
1978
1978
File . join ( ARTest ::SQLServer . root_activerecord , "test/assets/schema_dump_5_1.yml" )
1979
1979
end
1980
+
1981
+ undef_method :schema_dump_8_0_path
1982
+ def schema_dump_8_0_path
1983
+ File . join ( ARTest ::SQLServer . root_activerecord , "test/assets/schema_dump_8_0.yml" )
1984
+ end
1980
1985
end
1981
1986
end
1982
1987
end
0 commit comments