1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove deprecated ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_multi_insert?

This commit is contained in:
Rafael Mendonça França 2020-05-07 15:36:59 -04:00
parent ea32fe3de4
commit cbf43df288
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948
4 changed files with 6 additions and 10 deletions

View file

@ -1,3 +1,7 @@
* Remove deprecated `ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_multi_insert?`.
*Rafael Mendonça França*
* Remove deprecated `ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?`. * Remove deprecated `ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?`.
*Rafael Mendonça França* *Rafael Mendonça França*

View file

@ -370,12 +370,6 @@ module ActiveRecord
false false
end end
# Does this adapter support multi-value insert?
def supports_multi_insert?
true
end
deprecate :supports_multi_insert?
# Does this adapter support virtual columns? # Does this adapter support virtual columns?
def supports_virtual_columns? def supports_virtual_columns?
false false

View file

@ -332,10 +332,6 @@ module ActiveRecord
assert_equal "special_db_type", @connection.type_to_sql(:special_db_type) assert_equal "special_db_type", @connection.type_to_sql(:special_db_type)
end end
def test_supports_multi_insert_is_deprecated
assert_deprecated { @connection.supports_multi_insert? }
end
def test_column_name_length_is_deprecated def test_column_name_length_is_deprecated
assert_deprecated { @connection.column_name_length } assert_deprecated { @connection.column_name_length }
end end

View file

@ -149,6 +149,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
### Removals ### Removals
* Remove deprecated `ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_multi_insert?`.
* Remove deprecated `ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?`. * Remove deprecated `ActiveRecord::ConnectionAdapters::AbstractAdapter#supports_foreign_keys_in_create?`.
* Remove deprecated `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#supports_ranges?`. * Remove deprecated `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#supports_ranges?`.