method
pending_migrations
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::InvalidMigrationTimestampError::Migration
pending_migrations()private
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 758
def pending_migrations
pending_migrations = []
ActiveRecord::Base.configurations.configs_for(env_name: env).each do |db_config|
ActiveRecord::PendingMigrationConnection.with_temporary_pool(db_config) do |pool|
if pending = pool.migration_context.open.pending_migrations
pending_migrations << pending
end
end
end
pending_migrations.flatten
end