Remove deprecated Tasks::DatabaseTasks.schema_file_type
This commit is contained in:
parent
3ec629784c
commit
049dfd4ccf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user