Remove deprecated environment
and name
arguments from Tasks::DatabaseTasks.schema_up_to_date?
This commit is contained in:
parent
515aa1ea4e
commit
9828cc76d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user