public function safeUp()
{
$modelsQuery = Record::find();
/** @var Record $record */
foreach ($modelsQuery->each() as $record) {
$record->status = 'new status';
$record->save();
}
}