method

new

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

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