Added #ifdef so migrations are run in Debug mode.