loadActiveHistory method
Loads only the currently active apply records.
Implementation
Future<List<PostgresqlMigrationRecord>> loadActiveHistory(
pg.SessionExecutor executor,
) async {
final history = await loadHistory(executor);
final activeNames = _activeMigrationNames(history);
return history
.where((record) => record.isApply && activeNames.contains(record.name))
.toList(growable: false);
}