method

pending_migrations

rails latest stable - Class: ActiveRecord::InvalidMigrationTimestampError::Migration

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

pending_migrations()
private

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 771
        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