Amended migration to drop foreign keys before dropping tables