method

new

rails latest stable - Class: ActiveRecord::PendingMigrationError
new(message = nil, pending_migrations: nil)
public

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 146
    def initialize(message = nil, pending_migrations: nil)
      if pending_migrations.nil?
        connection = ActiveRecord::Tasks::DatabaseTasks.migration_connection
        pending_migrations = connection.migration_context.open.pending_migrations
      end

      super(message || detailed_migration_message(pending_migrations))
    end