method
new
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::InvalidMigrationTimestampError::PendingMigrationError
new(message = nil, pending_migrations: nil)public
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 158
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