-- Migration 008: fix answers_insert policy
-- Root cause: WITH CHECK con EXISTS en responses
-- bloqueaba INSERT de anon porque anon no tiene SELECT en responses.
-- El FK response_id → responses(id) ya garantiza la integridad referencial.
DROP POLICY "answers_insert" ON public.answers;
CREATE POLICY "answers_insert" ON public.answers
    FOR INSERT TO anon, authenticated
    WITH CHECK (true);
