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:
parent
ea32fe3de4
commit
cbf43df288
4 changed files with 6 additions and 10 deletions
|
@ -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*
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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?`.
|
||||||
|
|
Loading…
Reference in a new issue