Add CREATE EXTENSION IF NOT EXISTS pgcrypto to migration for compatibility with older PostgreSQL versions.