public function getRecordVersions()
    {
        /** @var ActiveRecord $owner */
        $owner = $this->owner;
        return (new Query)
            ->select('action_id')
            ->from($this->auditTableName)
            ->where(['AND',
                'relation_id = (:tableName)::regclass',
                'statement_only = false',
                ['OR', 'action_type = \'INSERT\'', 'action_type = \'UPDATE\''],
                ':primaryKey' => json_encode($owner->getPrimaryKey(true)),
            ], [':tableName' => $owner->tableName()])
            ->orderBy('action_id')
            ->column($owner->getDb());
    }