Exception: ActiveRecord::PendingMigrationError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::PendingMigrationError
- Includes:
- ActiveSupport::ActionableError
- Defined in:
- lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(message = nil, pending_migrations: nil) ⇒ PendingMigrationError
constructor
A new instance of PendingMigrationError.
Constructor Details
#initialize(message = nil, pending_migrations: nil) ⇒ PendingMigrationError
Returns a new instance of PendingMigrationError.
159 160 161 162 163 164 165 |
# File 'lib/active_record/migration.rb', line 159 def initialize( = nil, pending_migrations: nil) if pending_migrations.nil? pending_migrations = connection_pool.migration_context.open.pending_migrations end super( || (pending_migrations)) end |