Merge pull request #48964 from sinsoku/fix-method-name
Fix method name to `check_all_pending!`
This commit is contained in:
commit
b56f938b5f
@ -283,9 +283,9 @@
|
||||
|
||||
*Jean Boussier*
|
||||
|
||||
* Deprecate `check_pending!` in favor of `check_pending_migrations!`.
|
||||
* Deprecate `check_pending!` in favor of `check_all_pending!`.
|
||||
|
||||
`check_pending!` will only check for pending migrations on the current database connection or the one passed in. This has been deprecated in favor of `check_pending_migrations!` which will find all pending migrations for the database configurations in a given environment.
|
||||
`check_pending!` will only check for pending migrations on the current database connection or the one passed in. This has been deprecated in favor of `check_all_pending!` which will find all pending migrations for the database configurations in a given environment.
|
||||
|
||||
*Eileen M. Uchitelle*
|
||||
|
||||
|
@ -644,10 +644,10 @@ def nearest_delegate # :nodoc:
|
||||
|
||||
# Raises ActiveRecord::PendingMigrationError error if any migrations are pending.
|
||||
#
|
||||
# This is deprecated in favor of +check_pending_migrations!+
|
||||
# This is deprecated in favor of +check_all_pending!+
|
||||
def check_pending!(connection = ActiveRecord::Tasks::DatabaseTasks.migration_connection)
|
||||
ActiveRecord.deprecator.warn(<<-MSG.squish)
|
||||
The `check_pending!` method is deprecated in favor of `check_pending_migrations!`. The
|
||||
The `check_pending!` method is deprecated in favor of `check_all_pending!`. The
|
||||
new implementation will loop through all available database configurations and find
|
||||
pending migrations. The prior implementation did not permit this.
|
||||
MSG
|
||||
|
Loading…
Reference in New Issue
Block a user