Skip to content

Commit b56f938

Browse files
authored
Merge pull request rails#48964 from sinsoku/fix-method-name
Fix method name to `check_all_pending!`
2 parents 8abfcd7 + 0e41e2c commit b56f938

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

activerecord/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@
283283

284284
*Jean Boussier*
285285

286-
* Deprecate `check_pending!` in favor of `check_pending_migrations!`.
286+
* Deprecate `check_pending!` in favor of `check_all_pending!`.
287287

288-
`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.
288+
`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.
289289

290290
*Eileen M. Uchitelle*
291291

activerecord/lib/active_record/migration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ def nearest_delegate # :nodoc:
644644

645645
# Raises ActiveRecord::PendingMigrationError error if any migrations are pending.
646646
#
647-
# This is deprecated in favor of +check_pending_migrations!+
647+
# This is deprecated in favor of +check_all_pending!+
648648
def check_pending!(connection = ActiveRecord::Tasks::DatabaseTasks.migration_connection)
649649
ActiveRecord.deprecator.warn(<<-MSG.squish)
650-
The `check_pending!` method is deprecated in favor of `check_pending_migrations!`. The
650+
The `check_pending!` method is deprecated in favor of `check_all_pending!`. The
651651
new implementation will loop through all available database configurations and find
652652
pending migrations. The prior implementation did not permit this.
653653
MSG

0 commit comments

Comments
 (0)