Building the image without touching the database

I found db:ensure_post_migrations via rake -AT.

What’s the difference between db:migrate with SKIP_POST_DEPLOYMENT_MIGRATIONS=0 and db:ensure_post_migrations?