Migration SQL script trying to create functions before the tables are created.
[42P01] FatalError: relation "Addresses" does not exist
Resolved it by moving the function creation scripts after the table creation.
Unfortunately, this is how Postgres generates the output while using pg_dump
I'm closing this issue. @arpitjacob feel free to re-open if you have anything to add to this 馃檪