Remove deprecated environment and name arguments from Tasks::DatabaseTasks.schema_up_to_date?

This commit is contained in:
Rafael Mendonça França 2021-11-18 18:54:27 +00:00
parent 515aa1ea4e
commit 9828cc76d1
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
3 changed files with 7 additions and 6 deletions

@ -1,3 +1,7 @@
* Remove deprecated `environment` and `name` arguments from `Tasks::DatabaseTasks.schema_up_to_date?`.
*Rafael Mendonça França*
* Merging conditions on the same column no longer maintain both conditions,
and will be consistently replaced by the latter condition.
@ -14,7 +18,6 @@
*Rafael Mendonça França*
* Remove deprecated support to `Model.reorder(nil).first` to search using non-deterministic order.
*Rafael Mendonça França*

@ -398,13 +398,9 @@ def load_schema(db_config, format = ActiveRecord.schema_format, file = nil) # :n
Migration.verbose = verbose_was
end
def schema_up_to_date?(configuration, format = ActiveRecord.schema_format, file = nil, environment = nil, name = nil)
def schema_up_to_date?(configuration, format = ActiveRecord.schema_format, file = nil)
db_config = resolve_configuration(configuration)
if environment || name
ActiveSupport::Deprecation.warn("`environment` and `name` will be removed as parameters in 7.0.0, you may now pass an ActiveRecord::DatabaseConfigurations::DatabaseConfig as `configuration` instead.")
end
file ||= schema_dump_path(db_config)
return true unless File.exist?(file)

@ -139,6 +139,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
* Remove deprecated support to `Model.reorder(nil).first` to search using non-deterministic order.
* Remove deprecated `environment` and `name` arguments from `Tasks::DatabaseTasks.schema_up_to_date?`.
### Deprecations
### Notable changes