Disable PostgreSQL foreign key checks for migrations

I'm creating a lot of migrations that have foreign keys in PostgreSQL 9.4. This is creating a headache because the tables must all be in the exact order expected by the foreign keys when they are