Exception: ActiveRecord::PendingMigrationError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::PendingMigrationError
- Includes:
- ActiveSupport::ActionableError
- Defined in:
- activerecord/lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(message = nil, pending_migrations: nil) ⇒ PendingMigrationError
constructor
A new instance of PendingMigrationError.
Methods included from ActiveSupport::ActionableError
Methods included from ActiveSupport::Concern
#append_features, #class_methods, extended, #included, #prepend_features, #prepended
Constructor Details
#initialize(message = nil, pending_migrations: nil) ⇒ PendingMigrationError
Returns a new instance of PendingMigrationError.
145 146 147 148 149 150 151 152 |
# File 'activerecord/lib/active_record/migration.rb', line 145 def initialize( = nil, pending_migrations: nil) if pending_migrations.nil? connection = ActiveRecord::Tasks::DatabaseTasks.migration_connection pending_migrations = connection.migration_context.open.pending_migrations end super( || (pending_migrations)) end |