Exception: ActiveRecord::PendingMigrationError

Inherits:
MigrationError show all
Includes:
ActiveSupport::ActionableError
Defined in:
lib/active_record/migration.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, pending_migrations: nil) ⇒ PendingMigrationError

Returns a new instance of PendingMigrationError.



162
163
164
165
166
167
168
# File 'lib/active_record/migration.rb', line 162

def initialize(message = nil, pending_migrations: nil)
  if pending_migrations.nil?
    pending_migrations = connection_pool.migration_context.open.pending_migrations
  end

  super(message || detailed_migration_message(pending_migrations))
end