method
new
rails latest stable - Class:
ActiveRecord::InvalidMigrationTimestampError::PendingMigrationError
new(message = nil, pending_migrations: nil)public
No documentation available.
# File activerecord/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