Remove deprecated Tasks::DatabaseTasks.schema_file_type

This commit is contained in:
Rafael Mendonça França 2023-01-17 21:19:14 +00:00
parent 3ec629784c
commit 049dfd4ccf
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
3 changed files with 6 additions and 10 deletions

@ -1,3 +1,7 @@
* Remove deprecated `Tasks::DatabaseTasks.schema_file_type`.
*Rafael Mendonça França*
* Remove deprecated `config.active_record.partial_writes`.
*Rafael Mendonça França*

@ -421,16 +421,6 @@ def dump_schema(db_config, format = ActiveRecord.schema_format) # :nodoc:
end
end
def schema_file_type(format = ActiveRecord.schema_format)
case format
when :ruby
"schema.rb"
when :sql
"structure.sql"
end
end
deprecate :schema_file_type, deprecator: ActiveRecord.deprecator
def schema_dump_path(db_config, format = ActiveRecord.schema_format)
return ENV["SCHEMA"] if ENV["SCHEMA"]

@ -103,6 +103,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
* Remove deprecated `config.active_record.partial_writes`.
* Remove deprecated `Tasks::DatabaseTasks.schema_file_type`.
### Deprecations
### Notable changes