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?`.
*Rafael Mendonça França*

View file

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

View file

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

View file

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